[antlr-interest] C PreProcessor Errors

SSG JJV virtuoso.coders at gmail.com
Sat Feb 28 19:43:17 PST 2009


Hi,
I downloaded C Preprocessor posted by *Youngki KU* on antlr. But could not
get it to work.
On trying to generate the java file for Cpp.g, i ended up with lot of
warnings and generated Java file failed compilation.

warning(105): Cpp.g:290:5: no lexer rule corresponding to token: TEXT_END
warning(105): Cpp.g:78:5: no lexer rule corresponding to token: DEFINE
warning(105): Cpp.g:99:5: no lexer rule corresponding to token: IF
warning(105): Cpp.g:91:5: no lexer rule corresponding to token: EXEC_MACRO
warning(105): Cpp.g:74:5: no lexer rule corresponding to token:
INCLUDE_EXPAND
warning(105): Cpp.g:81:6: no lexer rule corresponding to token: DEFINE
warning(105): Cpp.g:110:5: no lexer rule corresponding to token: ERROR
warning(105): Cpp.g:79:5: no lexer rule corresponding to token: DEFINE
warning(105): Cpp.g:100:5: no lexer rule corresponding to token: ELIF
warning(105): Cpp.g:95:5: no lexer rule corresponding to token: UNDEF
warning(105): Cpp.g:100:81: no lexer rule corresponding to token: ENDIF

I am using antlr works jar in class path.
ANTLR Parser Generator  Version 3.0 (May 17, 2007)  1989-2007

Am is missing something?

Also the files mentioned in makefile( macro.g, MacroTree.g ) are missing in
the tar.

Is this the correct tar i am using?

Please help.

--------
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090228/d8cfed3d/attachment.html 


More information about the antlr-interest mailing list