From Jonathan.Gibbons at Sun.COM Mon Nov 10 12:02:10 2008 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Mon, 10 Nov 2008 12:02:10 -0800 Subject: New content on web site Message-ID: <49189342.1000602@sun.com> Yang and I have been working on a bunch more content for the compiler-grammar project website. See the section "For More Information..." on http://openjdk.java.net/projects/compiler-grammar/ -- Jon From mgricken at rice.edu Tue Nov 18 10:25:43 2008 From: mgricken at rice.edu (Mathias Ricken) Date: Tue, 18 Nov 2008 12:25:43 -0600 Subject: ANTLRWorks on the Mac Message-ID: <3a8367530811181025n107f1466g21ac4d2a20c0fe37@mail.gmail.com> 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 From yang.jiang.z at gmail.com Tue Nov 18 10:50:28 2008 From: yang.jiang.z at gmail.com (Yang Jiang) Date: Tue, 18 Nov 2008 10:50:28 -0800 Subject: ANTLRWorks on the Mac In-Reply-To: <3a8367530811181025n107f1466g21ac4d2a20c0fe37@mail.gmail.com> References: <3a8367530811181025n107f1466g21ac4d2a20c0fe37@mail.gmail.com> Message-ID: <49230E74.2040500@gmail.com> 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 >