Hi Jerry,. On Sun, Mar 13, 2011 at 3:33 PM, g...@novadsp.com <g...@novadsp.com> 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.