Open andr1972 opened 1 year ago
I think you can already do one or two files:
2 files:
ANTLR(INPUT MyLexer.g4)
ANTLR(INPUT MyParser.g4 DEPENDENCIES MyLexer.cpp)
1 file:
ANTLR(INPUT Combined.g4)
Isn't that sufficient?
ANTLR for Combined.g4 will generate CombinedLexer.cpp and CombinedParser.cpp, whereas for
MyLexer.g4 will generate MyLexer.cpp - the same base name as g4
Thanks, Your starter is very useful in writing C g4 grammar.
Is possible add these handling ? My trial of change original function: