Skip to content

Lexer not generated correctly by AntlrDT #12

Description

@rensink

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions