My own experience is that island grammars are harder to embed without side effects than I expected. YMMV. In the case of compiler directives I find a two-pass solution flexible and easier to get right without unexpected results.
Kyle ------Original Message------ From: Andrzej Sender: antlr-interest-boun...@antlr.org To: antlr-interest@antlr.org Subject: [antlr-interest] How behave with preprocessor ? Sent: Dec 21, 2010 2:24 PM I have two simultaneous grammars: preprocessor and C; how behave with this case? It it situation similar to "island grammar" ? (examples-v3.tar.gz: examples-v3\csharp\island-grammar) where I have embedded one grammar in other? List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address Sent from my Verizon Wireless BlackBerry 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.