[antlr-interest] Query on ANTLR C Grammar

Jim Idle jimi at temporal-wave.com
Wed May 5 10:15:21 PDT 2010


You are probably not using the -I option hugely enough.

Jim


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Amar Lakshmi Gejje
> Sent: Tuesday, May 04, 2010 9:33 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Query on ANTLR C Grammar
> 
> Hi,
> 
> I have downloaded the C Grammar for Antlrv3 from the ANTLR website
> (antlr.org). I was trying to generating the code in target language 'C'
> and was successful. I have set the 'options' block  with the target
> language as 'C' as shown below.
> 
> options {
>     backtrack=true;
>     memoize=true;
>     k=2;
>     language = C;
> }
> 
> When I tried to compile the generated CLexer.C and CParser.C files
> using GCC compiler, huge errors are thrown. Please correct me in
> setting the target language correctly
> 
> Thanks & Regards,
> Amar Lakshmi
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list