[antlr-interest] How behave with preprocessor ?

kferrio at gmail.com kferrio at gmail.com
Tue Dec 21 19:18:07 PST 2010


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-bounces at antlr.org
To: antlr-interest at 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


More information about the antlr-interest mailing list