tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
634 stars 109 forks source link

"cannot find tokens file" (documentation missing) #544

Closed matthew-dean closed 1 year ago

matthew-dean commented 1 year ago

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?

matthew-dean commented 1 year ago

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