ANTLRWorks on the Mac
Yang Jiang
yang.jiang.z at gmail.com
Tue Nov 18 10:50:28 PST 2008
Hi Mathias,
I'm not a Mac user:) but I looked at the code generated by my version of
ANTLRWorks(1.2.1)
It's like this :
public class JavaParser extends DebugParser {
So, my guess is you have an old version of ANTLRWorks or ANTLR library
in your class path.
You can try to start from command line lwith something like this
java -cp antlrworks.jar -Xmx512m org.antlr.works.IDE
Hope this will work.
Yang
Mathias Ricken wrote:
> Hi everyone:
>
> I just started to experiment with the OpenJDK Compiler Grammar project
> and ANTLRWorks on my MacBook.
>
> I have SoyLatte installed, and I can build javac from the Compiler
> Grammar using the ant -f make/build.xml command line. However, when I
> open the grammar in ANTLRWorks and try to follow the "Using ANTLRWorks
> with Java.g" tutorial, I get an error in the console:
>
> [12:18:19] Checking Grammar...
> [12:20:31] /Users/mgricken/Documents/Research/Mint/compiler-grammar/langtools/src/share/classes/com/sun/tools/javac/antlr/output/JavaParser.java:158:
> cannot find symbol
> [12:20:31] symbol: class DebugAntlrJavacParser
> [12:20:31] public class JavaParser extends DebugAntlrJavacParser {
> [12:20:31] ^
>
> And after that, of course, everything goes wrong (100 errors).
>
> I have provided a path to SoyLatte as compiler in the
> Preferences/Compiler tab, but I'm not sure what I need to set as
> classpath.
>
> Can anyone help me out? Thanks in advance.
>
> Mathias Ricken
>
More information about the compiler-grammar-dev
mailing list