antlrantlrworks

setup problems with ANTLRworks 2.4.1 and 1.5.2


I haven't had any luck getting the ANTLRworks plug-ins to work. So this question is an attempt to update the ANTLRworks setup procedures and, as I say at the end, I'm willing to provide pull requests for the ANTLRworks website with updated notes.

Actually, ANTLR has several plug-ins for different IDE environments:

Long story medium, I've tried both versions of ANLTLRworks but I haven't tried the IntelliJ plug-in because I still need ANTLR 3 compatibility.

ANTLRworks 2.x

For ANTLRworks 2, the trick is to install the plug-in (latest is 2.4.1) from within NetBeans IDE. It's also necessary to only use NetBeans IDE 8.0.1 because NetBeans 8.0 and 8.0.2 both have compatibility problems.

My problems with ANTLRworks 2.x are:

ANTLRworks 1.x

So I moved on to ANTLRworks 1.x. For this I tried to install the plug-in in IntelliJ based on the notes provided on the website (http://www.antlr3.org/works/help/tutorial/intellij.html).

I'm using IntelliJ 14, so I'm being optimistic that the plug-in isn't out of date. The idea seems to be to build a plug-in module and I've reached the end of the notes when I get to these instructions:

Use this configuration to run the plugin in another instance of IntelliJ. Once the other instance of IntelliJ is open, create a new project and then create a grammar file. Make sure to setup the javac path in the ANTLRWorks preferences (File > Settings > ANTLRWorks) to C:\Program Files\Java\jdk1.5.0_11\bin to avoid having issue launching the debugger from the plugin.

I'm not even sure what this means. I had been expecting to create some sort of jar file containing the plug-in, but this doesn't make any sense to me.

I've been keeping notes about about each of these procedures and I'm willing to create pull requests for either (or both) plug-in versions. But I'll need some help.


Solution

  • For NetBeans and the ANTLRWorks Plugin:

    1. Install NetBeans 8.0.1
    2. Tools > Plugins
    3. Install ANTLRWorks

    This doesn't work with 8.0.2, so make sure you get the older version.

    https://netbeans.org/downloads/index.html

    enter image description here