Fwd: [antlr-interest] antlr3 & an

Jose Ventura jose.ventura.roda at gmail.com
Thu Jul 13 00:10:40 PDT 2006


Ok Matt, it's a great news, I wish you luck.

Thank's
José Ventura.

---------- Forwarded message ----------
From: Matt Benson <gudnabrsam at yahoo.com>
Date: Jul 12, 2006 5:06 PM
Subject: Re: [antlr-interest] antlr3 & an
To: Jose Ventura <jose.ventura.roda at gmail.com>

Jose:
ANTLR3 has, as you probably know, a different syntax
from ANTLR 2.x, so the 2.x Tool will not process
ANTLR3 grammars.  The existing Ant task is for ANTLR
2.x.  Hopefully soon (I will be working on it soon)
there will be an ANTLR3 task.  I believe Ter has
verified his acceptance for it to live in the ANTLR
world; my plan is for it to be an antlib, with the
main task simply defined by the name "tool".  Normal
use would have you import the antlib into an "antlr3"
namespace; your buildfile might contain:

<project xmlns:antlr3="antlib:org.antlr">
...
<target name="g">
   <antlr3:tool ...>
     <fileset refid="grammarfiles" />
   </antlr3:tool>
</target>
</project>

Wish me luck,
Matt

--- Jose Ventura <jose.ventura.roda at gmail.com> wrote:

> Hi all,
>
> I'm have a problem with ant & antlr3. --other more
> ;-)
>
> If I run the ant with a antlr2 grammar all it's ok,
> but if it's a antlr3
> grammar not run ok. The classpath link with antlr3,
> and the -d option of ant
> show these messages:
>
>
> generator:
>   [antlr] Found C:\antlr\300\lib\antlr-2.7.6.jar
>   [antlr] Found C:\antlr\300\lib\antlr-2.7.6.jar
>   [antlr] Setting target to: C:\Documents and
> Settings\JVR3651A\My
>
Documents\java\Transformer\LeTra\src\letra\comp\letra.g
>   [antlr] Setting output directory to: C:\Documents
> and Settings\JVR3651A\My
> Documents\java\Transformer\LeTra\src\letra\comp
>
> BUILD FAILED
> C:\Documents and Settings\JVR3651A\My
> Documents\java\Transformer\LeTra\build.xml:32:
> Unable to determine generated
> class
>
> for this target:
>
> <target name="generator">
>      <antlr target="${letra.g}" />
> </target>
>
>
>
> Can anyone help me?
>
> Thank's
> José Ventura.
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060713/354f1ebf/attachment.html


More information about the antlr-interest mailing list