[antlr-interest] Partitioning Antlr grammar into a couple files
Vitaliy
Vitaliy at dbsophic.com
Sun Jun 15 04:02:42 PDT 2008
Hi all,
Does anyone has an idea how can a large grammar definition be split between a multiple number of files?
I've defined a pretty large grammar - around 160 rules, spanning over 3000 lines, and growing.
Antlr generated code is huge as well - around 25,000 lines of code for the lexer and the parser each, after optimizations.
It's really hard to test \ manage such a big grammar. Is there a way to split it between a number of files?
Any kind of an import or using directive?
Thanks for your help,
Vitaliy
__________ Information from ESET NOD32 Antivirus, version of virus signature database 3186 (20080613) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the antlr-interest
mailing list