We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$antlr4 -Dlanguage=JavaScript SplParser.g4
Generate file:SplParserLexer.js.
In SplParserLexer.js codes:
function SplParserLexer(input) { antlr4.Lexer.call(this, input); this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.PredictionContextCache()); return this; }
Browser error:"TypeError: Class constructor Lexer cannot be invoked without 'new'"
How to solve it,please?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$antlr4 -Dlanguage=JavaScript SplParser.g4
Generate file:SplParserLexer.js.
In SplParserLexer.js codes:
function SplParserLexer(input) {
antlr4.Lexer.call(this, input);
this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.PredictionContextCache());
return this;
}
Browser error:"TypeError: Class constructor Lexer cannot be invoked without 'new'"
How to solve it,please?
The text was updated successfully, but these errors were encountered: