MCPcopy Create free account
hub / github.com/chermehdi/comet / parseStatement

Method parseStatement

pkg/parser/parser.go:179–198  ·  view source on GitHub ↗

Try to parse a statement, it's possible just by knowing the current token type because the Grammar of the language allows us to. Otherwise fallback to try and parse an expression.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ParseMethod · 0.95
parseBlockStatementMethod · 0.95

Calls 8

parseDeclarationMethod · 0.95
parseReturnStatementMethod · 0.95
parseBlockStatementMethod · 0.95
parseIfStatementMethod · 0.95
parseForStatementMethod · 0.95
parseExpressionMethod · 0.95

Tested by

no test coverage detected