[antlr-interest] Partitioning Antlr grammar into a couple files

Vitaliy Vitaliy at dbsophic.com
Sun Jun 15 04:23:59 PDT 2008


I understand that version 3.1 is not released yet?
Do you know when it might be released? Can I achieve this somehow else in the meantime?

Thanks,
Vitaliy

-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Gavin Lambert
Sent: Sunday, June 15, 2008 13:19
To: Vitaliy; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Partitioning Antlr grammar into a couple files

At 23:02 15/06/2008, Vitaliy wrote:
 >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?

No, but 3.1 supports inheritance, which can accomplish the same
effect.  I think :)  (I haven't actually used it myself.)






__________ Information from ESET NOD32 Antivirus, version of virus signature database 3186 (20080613) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ 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