Open rensink opened 3 years ago
The lexer automatically built by AntlrDT is different from the one generated by a manual call to the antlr library, through
java -jar lib/antlr-4.9.2-complete.jar
The automatically built one fails to work. Concretely, the following functions generate different return values:
private static String[] makeRuleNames() private static String[] makeLiteralNames()
The following Eclipse project demonstrates the problem: compare bug.AntlrDTGeneratedToyParser and bug.ManuallyGeneratedToyParser.
antlrDTBug.zip
Thanks for looking into this, and keep up the good work! Arend
The lexer automatically built by AntlrDT is different from the one generated by a manual call to the antlr library, through
java -jar lib/antlr-4.9.2-complete.jar
The automatically built one fails to work. Concretely, the following functions generate different return values:
private static String[] makeRuleNames() private static String[] makeLiteralNames()
The following Eclipse project demonstrates the problem: compare bug.AntlrDTGeneratedToyParser and bug.ManuallyGeneratedToyParser.
antlrDTBug.zip
Thanks for looking into this, and keep up the good work! Arend