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

Function NewCommandsParser

repl/parser/commands_parser.go:282–294  ·  view source on GitHub ↗

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

(input antlr.TokenStream)

Source from the content-addressed store, hash-verified

280
281// NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
282func NewCommandsParser(input antlr.TokenStream) *CommandsParser {
283 CommandsParserInit()
284 this := new(CommandsParser)
285 this.BaseParser = antlr.NewBaseParser(input)
286 staticData := &CommandsParserStaticData
287 this.Interpreter = antlr.NewParserATNSimulator(this, staticData.atn, staticData.decisionToDFA, staticData.PredictionContextCache)
288 this.RuleNames = staticData.RuleNames
289 this.LiteralNames = staticData.LiteralNames
290 this.SymbolicNames = staticData.SymbolicNames
291 this.GrammarFileName = "Commands.g4"
292
293 return this
294}
295
296// CommandsParser tokens.
297const (

Callers 3

ParseFunction · 0.92
ParseTypeFunction · 0.92
tryParseFunction · 0.85

Calls 1

CommandsParserInitFunction · 0.85

Tested by 1

tryParseFunction · 0.68