[antlr-interest] Antlr3 in Eclipse and Maven?
Swathi V
swathiv at zinniasystems.com
Thu Jun 21 04:24:08 PDT 2012
Hi Brad,
ANTLR is awesome :) I had used it a year back for an open source project
based on Hadoop :)
Just in case you have issues using it, I would like to suggest few links.
Hope you find them useful.
Getting Started:
http://femgeekz.blogspot.in/2012/06/getting-started-with-antlrbasics.html
Setting as external tool in Eclipse:
http://femgeekz.blogspot.in/2012/06/antlr-as-external-tool-in-eclipse-on.html
For maven integration :
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.1.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>3.1.3-1</version>
<executions>
<execution>
<configuration>
<outputDirectory>src/main/java</outputDirectory>
</configuration>
<goals>
<goal>antlr</goal>
</goals>
</execution>
</executions>
</plugin>
This worked fine for me.
Please check once :)
Thank You.
Regards,
Swathi.V.
Zinnia Systems
Blog URL : http://femgeekz.blogspot.com
On Thu, Jun 21, 2012 at 4:38 PM, Brad Cox <bradjcox at gmail.com> wrote:
> On Wed, Jun 20, 2012 at 9:39 PM, Jim Idle <jimi at temporal-wave.com> wrote:
>
> > The wiki instructions are fine and the output you see on the web page is
> > from maven. However you should really be using 3.4 anyway of course -
>
>
> Fine? Of course? How would anyone know that when the wiki doesn't mention
> versions, just a link to a example with the wrong version number? Of
> course you "should" but will anyone know that? Quote from
> http://www.antlr.org/antlr3-maven-plugin/examples/simple.html
>
> If your grammar files are organized into the default locations as described
> in the introduction <http://www.antlr.org/antlr3-maven-plugin/index.html>,
> then configuring the pom.xml file for your project is as simple as adding
> this to it
>
> <plugins>
> <plugin>
> <groupId>org.antlr</groupId>
> <artifactId>antlr3-maven-plugin</artifactId>
> <version>3.1.3-1</version>
> <executions>
> <execution>
> <goals>
> <goal>antlr</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ...
> </plugins>
>
>
> I fixed the lexer problem and maven builds work now, but I still don't have
> a clue about how to get the eclipse editor working.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list