[antlr-interest] Multiple grammar files

Terence Parr parrt at cs.usfca.edu
Mon May 26 23:08:11 PDT 2008


3.1 has a grammar import. :)
Ter
On May 26, 2008, at 10:26 PM, Waldemar Sauer wrote:

> I'm writing a grammar that getting close to 2000 lines. It is  
> becoming cumbersome to find stuff in there, so I was wondering: what  
> is the recommended way in antlr to separate a single grammar into  
> separate files? Let’s say you have the following grammar g1.g:
>
> grammar g1; options { language=C;  }
> a: b c;
> b: ‘literal1’;
> c: ‘literal2’;
>
> How can I put the rules for b and c in separate files?
>
>
>
> Change the world with e-mail. Join the i’m Initiative from Microsoft.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080526/58a9efdd/attachment-0001.html 


More information about the antlr-interest mailing list