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

Function NewCELParser

parser/gen/cel_parser.go:193–205  ·  view source on GitHub ↗

NewCELParser produces a new parser instance for the optional input antlr.TokenStream.

(input antlr.TokenStream)

Source from the content-addressed store, hash-verified

191
192// NewCELParser produces a new parser instance for the optional input antlr.TokenStream.
193func NewCELParser(input antlr.TokenStream) *CELParser {
194 CELParserInit()
195 this := new(CELParser)
196 this.BaseParser = antlr.NewBaseParser(input)
197 staticData := &CELParserStaticData
198 this.Interpreter = antlr.NewParserATNSimulator(this, staticData.atn, staticData.decisionToDFA, staticData.PredictionContextCache)
199 this.RuleNames = staticData.RuleNames
200 this.LiteralNames = staticData.LiteralNames
201 this.SymbolicNames = staticData.SymbolicNames
202 this.GrammarFileName = "CEL.g4"
203
204 return this
205}
206
207// CELParser tokens.
208const (

Callers 1

parseMethod · 0.92

Calls 1

CELParserInitFunction · 0.85

Tested by

no test coverage detected