Results 1 to 2 of 2
  1. #1
    DiamondSoul is offline Member
    Join Date
    Oct 2011
    Posts
    83
    Rep Power
    0

    Default 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 02:32 AM. Reason: problem fixed

  2. #2
    eduardo7 is offline Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Default Re: I am having trouble integrating ANTLR with Eclipse Ganymede.

    Quote Originally Posted by DiamondSoul View Post
    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.
    Hello, I'm having the same issue here, the Eclipse gets stucked on "building workspace" and only end by the task manager.
    But even seeing the video, I didn't understand how to fix the problem. (I'm using the first approach.)
    Could you help me?
    Thanks!

Similar Threads

  1. running ANTLR from Eclipse???
    By 1wretch in forum Eclipse
    Replies: 3
    Last Post: 10-24-2009, 03:22 AM
  2. Eclipse Ganymede Proxy Issues
    By seanlon11 in forum Eclipse
    Replies: 1
    Last Post: 09-08-2009, 06:31 PM
  3. Annotation Processing in Eclipse Ganymede
    By mcfrog in forum Eclipse
    Replies: 2
    Last Post: 07-23-2009, 07:42 AM
  4. Replies: 0
    Last Post: 04-04-2009, 09:21 PM
  5. Visual Editor For Eclipse 3.4 Ganymede
    By fcojavierperez in forum Eclipse
    Replies: 0
    Last Post: 12-19-2008, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •