You are probably not using the -I option hugely enough. Jim
> -----Original Message----- > From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of Amar Lakshmi Gejje > Sent: Tuesday, May 04, 2010 9:33 PM > To: antlr-interest@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 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.