I wanted to use antlr
library for one of my projects. I browsed through available wiki pages on antlr4
website and written my grammar.
Everything looks good but I am wondering about some of the generated files.
I have bunch of .java
files (Lexer, Parser, Listener, BaseListener) but I also have two files with .tokens
extension. I am wondering if they are needed by generated parser and lexer during runtime or they are just byproduct of java code generation and I do not need to include them in my project?
.tokens files are not needed at runtime. They are just used for ANTLR to share info between grammars, if necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With