CommandsParserInit initializes any static state used to implement CommandsParser. By default the static state used to implement the parser is lazily initialized during the first call to NewCommandsParser(). You can call this function if you wish to initialize the static state ahead of time.
()
| 274 | // NewCommandsParser(). You can call this function if you wish to initialize the static state ahead |
| 275 | // of time. |
| 276 | func CommandsParserInit() { |
| 277 | staticData := &CommandsParserStaticData |
| 278 | staticData.once.Do(commandsParserInit) |
| 279 | } |
| 280 | |
| 281 | // NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream. |
| 282 | func NewCommandsParser(input antlr.TokenStream) *CommandsParser { |