antlr4.13 target javascript or typescript generate python code in the lexer file #4315
-
when using the javascript or typescript target to genearte the parser the lexer file has pythoncode combined with little bit of javascript code,
|
Beta Was this translation helpful? Give feedback.
Answered by
ericvergnaud
Jun 16, 2023
Replies: 1 comment 2 replies
-
The culprit code comes from the grammar not from antlr. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Elmahdi1962
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The culprit code comes from the grammar not from antlr.
You need to use a grammar with production code suitable for JS