Results 1 to 2 of 2
- 01-30-2012, 01:17 AM #1
Member
- Join Date
- Oct 2011
- Posts
- 83
- Rep Power
- 0
I am having trouble integrating ANTLR with Eclipse Ganymede.
ANTLR Parser Generator is what I'm referring to. I've tried two approaches, both of which have failed.
First approach:
I followed the instructions in this video and got to the point of being able to create a *.g file in my Eclipse project, but Eclipse got stuck on "building workspace" forever and anything I tried to do (i.e. save, run, exit) would just bring up a window saying "waiting for operation 'building workspace' to complete". It wouldn't let me cancel the building workspace operation either. I would end up having to force quit Eclipse in the Task Manager.
Second approach:
I downloaded ANTLRWorks and used it to make a simple grammar called "test2". I then used ANTLRWorks to generate the files "test2Lexer.java" and "test2Parser.java". I put those two files into a new Eclipse project, but there are errors on the line "import org.antlr.runtime.*;" and on all references to classes within that package. I then right click on "default package" (where the two source files are stored in Eclipse) and select "Import" and import the file "antlr-3.4-complete-no-antlrv2.jar" that I downloaded from antlr.org. Eclipse no longer marks the "import org.antlr.runtime.*;" line as an error, but it still marks all references to classes in that package as errors.
Can anybody tell me what's wrong with either of these approaches and how to fix it?
edit: Oh, wow, I'm dumb. If I had just watched another minute into that video I linked it would have explained it.Last edited by DiamondSoul; 01-30-2012 at 01:32 AM. Reason: problem fixed
- 08-06-2012, 09:29 PM #2
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
Re: I am having trouble integrating ANTLR with Eclipse Ganymede.
Similar Threads
-
running ANTLR from Eclipse???
By 1wretch in forum EclipseReplies: 3Last Post: 10-24-2009, 02:22 AM -
Eclipse Ganymede Proxy Issues
By seanlon11 in forum EclipseReplies: 1Last Post: 09-08-2009, 05:31 PM -
Annotation Processing in Eclipse Ganymede
By mcfrog in forum EclipseReplies: 2Last Post: 07-23-2009, 06:42 AM -
Integrating Eclipse Ganymede with Tomcat 5.0
By ajeeb in forum EclipseReplies: 0Last Post: 04-04-2009, 08:21 PM -
Visual Editor For Eclipse 3.4 Ganymede
By fcojavierperez in forum EclipseReplies: 0Last Post: 12-19-2008, 12:11 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks