Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I get the Antlr Ant task?

Tags:

parsing

ant

antlr

I'm trying to call an Antlr task in my Ant build.xml as follows:

<path id="classpath.build">
  <fileset dir="${dir.lib.build}" includes="**/*.jar" />
</path>

...

<target name="generate-lexer" depends="init">
  <antlr target="${file.antlr.lexer}">
    <classpath refid="classpath.build"/>
  </antlr>
</target>

But Ant can't find the task definition. I've put all of the following in that dir.lib.build:

  • antlr-3.1.jar
  • antlr-2.7.7.jar
  • antlr-runtime-3.1.jar
  • stringtemplate-3.2.jar

But none of those seems to have the task definition. (I've also tried putting those jars in my Ant classpath; same problem.)

like image 477
James A. Rosen Avatar asked Jan 25 '23 04:01

James A. Rosen


1 Answers

The current Antlr-task jar is available at http://www.antlr.org/share/1169924912745/antlr3-task.zip

It can be found on the antlr.org website under the "File Sharing" heading.

like image 196
James A. Rosen Avatar answered Feb 09 '23 04:02

James A. Rosen