NewCELParser produces a new parser instance for the optional input antlr.TokenStream.
(input antlr.TokenStream)
| 191 | |
| 192 | // NewCELParser produces a new parser instance for the optional input antlr.TokenStream. |
| 193 | func 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. |
| 208 | const ( |