Hi,
I'm trying to create a JavaScript parser for T-SQL using this grammar:
https://github.com/antlr/grammars-v4/tree/master/sql/tsqlGeneration of the JS files works fine.
Nevertheless when trying to use them I always get:
ERROR in ./build/TSQLParser.js 9997:17
Module parse failed: Identifier '_alt' has already been declared (9997:17)
| this.state = 1106;
| this._errHandler.sync(this);
> let _alt = this._interp.adaptivePredict(this._input,7,this._ctx)
| while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) {
| if(_alt===1) {
I get the same error without using webpack as well (i.e. node with "type": "module").
Anybody seen something like this before?