MCPcopy Create free account
hub / github.com/brettlangdon/forge / syntaxError

Method syntaxError

parser.go:64–72  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

62}
63
64func (parser *Parser) syntaxError(msg string) error {
65 msg = fmt.Sprintf(
66 "syntax error line <%d> column <%d>: %s",
67 parser.curTok.Line,
68 parser.curTok.Column,
69 msg,
70 )
71 return errors.New(msg)
72}
73
74func (parser *Parser) readToken() token.Token {
75 parser.curTok = parser.scanner.NextToken()

Callers 7

parseReferenceMethod · 0.95
parseSettingValueMethod · 0.95
parseSettingMethod · 0.95
parseIncludeMethod · 0.95
endSectionMethod · 0.95
parseMethod · 0.95
ParseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected