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

Function EnablePrattParser

parser/options.go:181–186  ·  view source on GitHub ↗

EnablePrattParser enables the Pratt parser implementation instead of the ANTLR parser.

(enablePrattParser bool)

Source from the content-addressed store, hash-verified

179
180// EnablePrattParser enables the Pratt parser implementation instead of the ANTLR parser.
181func EnablePrattParser(enablePrattParser bool) Option {
182 return func(opts *options) error {
183 opts.enablePrattParser = enablePrattParser
184 return nil
185 }
186}
187
188// EnableCallEscapeSyntax enables backtick (`) escaped function and method call identifiers,
189// as well as internal identifiers with '@' characters.

Callers 12

TestParseFunction · 0.85
TestSourceInfoPositionsFunction · 0.85
TestPopulateMacroCallsFunction · 0.85
TestErrorRecoveryLimitsFunction · 0.85
TestRecursionLimitFunction · 0.85
BenchmarkByCategoryFunction · 0.85
TestParseErrorDataFunction · 0.85
TestUnparseEscapedCallsFunction · 0.85

Calls

no outgoing calls

Tested by 11

TestParseFunction · 0.68
TestSourceInfoPositionsFunction · 0.68
TestPopulateMacroCallsFunction · 0.68
TestErrorRecoveryLimitsFunction · 0.68
TestRecursionLimitFunction · 0.68
BenchmarkByCategoryFunction · 0.68
TestParseErrorDataFunction · 0.68
TestUnparseEscapedCallsFunction · 0.68