Reputation: 6237
I do a simple MIB file parser.
Antlr 4 tool generates following files:
MibParser.java
MibLexer.java
MibListener.java
MibBaseListener.java
Can I force antlr 4 to combine pairs of those files to reduce clutter? Any command line switch ?
Upvotes: 0
Views: 77
Reputation: 99989
You can use the -no-listener
and -no-visitor
options to suppress the generation of two of those files if you don't need them. In addition to not having an option to combine files currently, I completely disagree that the creation of 4 files represents "clutter" in this context, so I would argue strongly against the implementation of such an option.
Upvotes: 1
Reputation: 170278
Łukasz Bownik wrote:
Can I force antlr 4 to combine pairs of those files to reduce clutter?
No.
Upvotes: 1