grosenberg / AntlrDT

Eclipse editor and builder for Antlr4 grammars
10 stars 3 forks source link

Lexer not generated correctly by AntlrDT #12

Open rensink opened 3 years ago

rensink commented 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