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

Method parseInternal

pkg/parser/parser.go:319–335  ·  view source on GitHub ↗

Tries to parse as long as the currentPrecedence is smaller than the precedence of the next operator. This is an implementation of the idea of a Pratt Parser.

(currentPrecedence int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

parseExpressionMethod · 0.95
parseBinaryExpressionMethod · 0.95

Calls 3

advanceMethod · 0.95
getPrecedenceFunction · 0.85
ReportMethod · 0.80

Tested by

no test coverage detected