You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using antlr4ts (version 0.4.0-alpha.4) to generate a parser and lexer for the XQuery 3.1 language, the generated code includes some invalid typescript: private int bracesInside = 0;
This can be fixed by changing it to: private bracesInside: number = 0;
The command I used to generate the typescript code is: antlr4ts src/parsing/XQueryLexer.g4 src/parsing/XQueryParser.g4 -visitor
When using antlr4ts (version 0.4.0-alpha.4) to generate a parser and lexer for the XQuery 3.1 language, the generated code includes some invalid typescript:
private int bracesInside = 0;
This can be fixed by changing it to:
private bracesInside: number = 0;
The command I used to generate the typescript code is:
antlr4ts src/parsing/XQueryLexer.g4 src/parsing/XQueryParser.g4 -visitor
And the g4 files can be found here: https://github.com/xqdoc/xqdoc/tree/master/src/main/antlr4/org/xqdoc
This is a snippet from the generated typescript code.
I tried to fixing the generation myself first but couldn't find the exact location in the codebase where
bracesInside
gets created.The text was updated successfully, but these errors were encountered: