[antlr-interest] SimpleCalc C Target example does not compile

Jim Idle jimi at temporal-wave.com
Sat Feb 2 13:18:36 PST 2008


I’ll take a look but please double check that you have produced
everything correctly as these examples did all compile and work
correctly with the 3.0.1 release.

 

Jim

 

From: HG [mailto:himanshu.garg at gmail.com] 
Sent: Saturday, February 02, 2008 7:59 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] SimpleCalc C Target example does not compile

 

Compiling the example given in
http://www.antlr.org/wiki/display/ANTLR3/Using+the+ANTLR3+C+Target

    simplecalcparser.c
    simplecalcparser.c(283) : error C2065: 'pSimpleCalcLexer' :
undeclared identifier

due to the following lines in the same file:-

    pSimpleCalcLexer lex = SimpleCalcLexerNew(input);

but pSimpleCalcLexer is not defined/declared in either
SimpleCalcParser.c or in the included files.

Should this compile at all?

Thank You,
Himanshu.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080202/ab301740/attachment-0001.html 


More information about the antlr-interest mailing list