[antlr-interest] Anyone built the example C grammar successfully?

Paul Johnson gt54-antlr at cyconix.com
Tue May 24 06:54:07 PDT 2005


Has anyone managed to build John Mitchell's/Monty Zukowski's C grammar 
(http://www.antlr.org/grammar/cgram)? I've tried this on gcj 3.3, gcj 
3.4.3, and javac 1.5.0_03, and none of them can compile more than a few 
files. I don't know any Java, which doesn't help, but it looks it may be 
like an import or compilation order problem:

---------
 > setenv CLASSPATH .:/eda/antlr/antlr-2.7.5/lib/antlr.jar
 > which javac
   /eda/jdk/jdk1.5.0_03/bin/javac
 > make -f Makefile >& temp
 > cat temp
  javac LineObject.java
  javac PreprocessorInfoChannel.java
  Note: PreprocessorInfoChannel.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  javac StdCParser.java
  ./TNode.java:9: '.' expected
  import CToken;
               ^
---------

and so on. gcj complains about ambiguous classes.

Thanks

Paul



More information about the antlr-interest mailing list