tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"cannot find tokens file" (documentation missing)

matthew-dean opened this issue · comments

According to the documentation, there are 4 steps to generating a .ts file. However, when running it against a .g4 parser file, this tool immediately fails with cannot find tokens file and lists a path to .tokens next to the .g4 file.

Clearly, there are more steps and dependencies. I assume something needs to be run previously using the Antlr4 Java tool?

Ah okay, looks like the lexer needs to be compiled first.