ParserOptions
ParserOptions mirrors the behavior flags from cel-go’s parser options.
Properties
Section titled “Properties”enableHiddenAccumulatorName
Section titled “enableHiddenAccumulatorName”enableHiddenAccumulatorName:
boolean
Chooses the hidden accumulator identifier used by comprehensions.
enableIdentEscapeSyntax
Section titled “enableIdentEscapeSyntax”enableIdentEscapeSyntax:
boolean
Enables backtick-escaped identifiers.
enableOptionalSyntax
Section titled “enableOptionalSyntax”enableOptionalSyntax:
boolean
Enables optional select, index, and initializer syntax.
enableStandardMacros
Section titled “enableStandardMacros”enableStandardMacros:
boolean
Controls whether the standard parser macros are registered.
enableVariadicOperatorASTs
Section titled “enableVariadicOperatorASTs”enableVariadicOperatorASTs:
boolean
Emits compact logical operator calls for like-kind chains.
errorRecoveryLimit
Section titled “errorRecoveryLimit”errorRecoveryLimit:
number
Limits how many parser recovery attempts may occur before bailing out.
errorRecoveryTokenLookaheadLimit
Section titled “errorRecoveryTokenLookaheadLimit”errorRecoveryTokenLookaheadLimit:
number
Limits how far parser recovery may scan ahead for a viable token.
errorReportingLimit
Section titled “errorReportingLimit”errorReportingLimit:
number
Limits the number of syntax errors reported for a single parse.
expressionSizeCodePointLimit
Section titled “expressionSizeCodePointLimit”expressionSizeCodePointLimit:
number
Limits the source size measured in Unicode code points.
macros
Section titled “macros”macros:
Map<string,Macro>
Registers parser macros by signature.
maxExpressionNodeCount
Section titled “maxExpressionNodeCount”maxExpressionNodeCount:
number
Limits the number of expression nodes emitted by parsing and macro expansion.
maxRecursionDepth
Section titled “maxRecursionDepth”maxRecursionDepth:
number
Limits recursive descent depth while parsing nested expressions.
populateMacroCalls
Section titled “populateMacroCalls”populateMacroCalls:
boolean
Preserves original macro call shapes in source info.