CELParserInit initializes any static state used to implement CELParser. By default the static state used to implement the parser is lazily initialized during the first call to NewCELParser(). You can call this function if you wish to initialize the static state ahead of time.
()
| 185 | // NewCELParser(). You can call this function if you wish to initialize the static state ahead |
| 186 | // of time. |
| 187 | func CELParserInit() { |
| 188 | staticData := &CELParserStaticData |
| 189 | staticData.once.Do(celParserInit) |
| 190 | } |
| 191 | |
| 192 | // NewCELParser produces a new parser instance for the optional input antlr.TokenStream. |
| 193 | func NewCELParser(input antlr.TokenStream) *CELParser { |