MCPcopy Create free account
hub / github.com/cel-expr/cel-go / parse

Method parse

parser/pratt_parser.go:445–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443}
444
445func (p *prattParserWorker) parse() ast.Expr {
446 expr := p.parseExpr()
447 if p.recursionLimitExceeded || p.isRecoveryLimitExceeded() {
448 return expr
449 }
450 if p.peekTok.kind != tokEnd && p.peekTok.kind != tokError {
451 p.reportSyntaxError(p.peekTok, "unexpected token after expression")
452 }
453 return expr
454}
455
456func (p *prattParserWorker) parseExpr() ast.Expr {
457 if p.recursionLimitExceeded || p.isRecoveryLimitExceeded() {

Callers 1

ParseMethod · 0.95

Calls 3

parseExprMethod · 0.95
reportSyntaxErrorMethod · 0.95

Tested by

no test coverage detected