Hi Bart Just the ticket. Thanks.
On 13/03/2011 14:37, Bart Kiers wrote: > Hi Jerry,. > > On Sun, Mar 13, 2011 at 3:33 PM, [email protected] <mailto:[email protected]> > <[email protected] <mailto:[email protected]>> wrote: > > Sorry! Must remember to post plain-text only. > > It would be useful to be able to #include a file in a grammar. use case: > grammar is generated by another tool but the lexer definitions are not. > > i.e. > > grammar auto > ... > > #include auto_lexer.g > > Is there a way to do this with the grammar spread over 2 files? > > > Yes, in ANTLR this is called "composite grammars". > Have a look at: http://www.antlr.org/wiki/display/ANTLR3/Composite+Grammars > > Regards, > > Bart. > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
