[antlr-interest] C PreProcessor Errors

SSG JJV virtuoso.coders at gmail.com
Sat Feb 28 21:01:10 PST 2009


Please ignore my mail,..., in spite of the WARNINGs from ANTLR, i was able
to compile the Java files using antlr-3.1.1.jar. However i had to change the
all occurrences of CppTreeTreeParser with CppTree for successful
compilation.

Thanks

On Sat, Feb 28, 2009 at 9:43 PM, SSG JJV <virtuoso.coders at gmail.com> wrote:

> 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/f4727701/attachment.html 


More information about the antlr-interest mailing list