NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
(input antlr.TokenStream)
| 280 | |
| 281 | // NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream. |
| 282 | func 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. |
| 297 | const ( |