I run "java -cp "antlr-4.12.0-complete.jar" org.antlr.v4.Tool -Dlanguage=Python3 ECMAScript.g4 ", but the generated 'ECMAScriptLexer.py' is grammerly wrong. Such as 'ECMAScriptLexer.prototype.strictMode = true;
ECMAScriptLexer.prototype.lastToken = null;' in python.
Only three targets work for the grammar, see desc.xml. The Python3 target directory isn't correctly named, either, named Python rather than Python3 or Python2, the proper names for the supported targets. And, the grammar shouldn't be forked. Much work to do to fix.
I run "java -cp "antlr-4.12.0-complete.jar" org.antlr.v4.Tool -Dlanguage=Python3 ECMAScript.g4 ", but the generated 'ECMAScriptLexer.py' is grammerly wrong. Such as 'ECMAScriptLexer.prototype.strictMode = true; ECMAScriptLexer.prototype.lastToken = null;' in python.