Jean Bovet | 1 Nov 2008 20:29
Picon
Favicon

Re: moved antlr3-task for ant

Hi,

I'm trying to build ANTLR using the old ant task and it doesn't  
compile (apparently some issue with the new antlr.v3 package). I  
synced this morning with the changes from Jimi so I don't really know  
what has changed (I don't see the changelist from jimi because I don't  
have the permission). I've tried to build using maven but no success  
because it doesn't find the antlr3-maven-plugin from the repository.

Any help appreciated :-)

Jean

On Oct 31, 2008, at 10:32 AM, Terence Parr wrote:

> hi, Jim Idle is building maven stuff for antlr and since we have ant
> task too, i'm making new root dir for buildtools and moving antlr-ant
> to ant under it.  here are current permissions updated:
>
>         write user jpfundt * //depot/code/antlr-buildtools/ant/...
>         write user jimi * //depot/code/antlr-buildtools/ant/...
>         write user jbovet * //depot/code/antlr-buildtools/ant/...
>         write user kroepke * //depot/code/antlr-buildtools/ant/...
>         write user mbenson * //depot/code/antlr-buildtools/ant/...
>
> Ter
> _______________________________________________
> antlr-dev mailing list
> antlr-dev@...
> http://www.antlr.org:8080/mailman/listinfo/antlr-dev
(Continue reading)

Jim Idle | 1 Nov 2008 22:36

Re: moved antlr3-task for ant

On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote:
Hi, I'm trying to build ANTLR using the old ant task and it doesn't compile (apparently some issue with the new antlr.v3 package). I synced this morning with the changes from Jimi so I don't really know what has changed (I don't see the changelist from jimi because I don't have the permission). I've tried to build using maven but no success because it doesn't find the antlr3-maven-plugin from the repository. Any help appreciated :-)

Hi Jean,

The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).

All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).

cd code/antlr-buildtools/maven/antlr3-maven-plugin
mvn install
cd code/antlr/main/runtime/Java
mvn install
~/antlrsrc/code/antlr/main
mvn install

Hopefully Ter will publish the antlr-snapshot directory via http soon.

Jim
Jean On Oct 31, 2008, at 10:32 AM, Terence Parr wrote: > hi, Jim Idle is building maven stuff for antlr and since we have ant > task too, i'm making new root dir for buildtools and moving antlr-ant > to ant under it. here are current permissions updated: > > write user jpfundt * //depot/code/antlr-buildtools/ant/... > write user jimi * //depot/code/antlr-buildtools/ant/... > write user jbovet * //depot/code/antlr-buildtools/ant/... > write user kroepke * //depot/code/antlr-buildtools/ant/... > write user mbenson * //depot/code/antlr-buildtools/ant/... > > Ter > _______________________________________________ > antlr-dev mailing list > antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org > http://www.antlr.org:8080/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org http://www.antlr.org:8080/mailman/listinfo/antlr-dev
<div>
On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote:
<blockquote type="CITE">

Hi,

I'm trying to build ANTLR using the old ant task and it doesn't  
compile (apparently some issue with the new antlr.v3 package). I  
synced this morning with the changes from Jimi so I don't really know  
what has changed (I don't see the changelist from jimi because I don't  
have the permission). I've tried to build using maven but no success  
because it doesn't find the antlr3-maven-plugin from the repository.

Any help appreciated :-)

</blockquote>
<br>
Hi Jean,<br><br>
The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).<br><br>
All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).<br><br>
cd code/antlr-buildtools/maven/antlr3-maven-plugin<br>
mvn install<br>
cd code/antlr/main/runtime/Java<br>
mvn install<br>
~/antlrsrc/code/antlr/main<br>
mvn install<br><br>
Hopefully Ter will publish the antlr-snapshot directory via http soon.<br><br>
Jim
<blockquote type="CITE">

Jean

On Oct 31, 2008, at 10:32 AM, Terence Parr wrote:

&gt; hi, Jim Idle is building maven stuff for antlr and since we have ant
&gt; task too, i'm making new root dir for buildtools and moving antlr-ant
&gt; to ant under it.  here are current permissions updated:
&gt;
&gt;         write user jpfundt * //depot/code/antlr-buildtools/ant/...
&gt;         write user jimi * //depot/code/antlr-buildtools/ant/...
&gt;         write user jbovet * //depot/code/antlr-buildtools/ant/...
&gt;         write user kroepke * //depot/code/antlr-buildtools/ant/...
&gt;         write user mbenson * //depot/code/antlr-buildtools/ant/...
&gt;
&gt; Ter
&gt; _______________________________________________
&gt; antlr-dev mailing list
&gt; <a href="mailto:antlr-dev@...">antlr-dev@...</a>
&gt; <a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>

_______________________________________________
antlr-dev mailing list
<a href="mailto:antlr-dev@...">antlr-dev@...</a>
<a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>

</blockquote>
</div>
Terence Parr | 1 Nov 2008 22:37
Gravatar

Re: moved antlr3-task for ant


On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:
> Hopefully Ter will publish the antlr-snapshot directory via http soon.

What about /download/maven?

Ter
Jean Bovet | 1 Nov 2008 23:44
Picon
Favicon

Re: moved antlr3-task for ant

Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?

Jean

On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:

On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote:
Hi, I'm trying to build ANTLR using the old ant task and it doesn't compile (apparently some issue with the new antlr.v3 package). I synced this morning with the changes from Jimi so I don't really know what has changed (I don't see the changelist from jimi because I don't have the permission). I've tried to build using maven but no success because it doesn't find the antlr3-maven-plugin from the repository. Any help appreciated :-)

Hi Jean,

The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).

All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).

cd code/antlr-buildtools/maven/antlr3-maven-plugin
mvn install
cd code/antlr/main/runtime/Java
mvn install
~/ antlrsrc/code/antlr/main
mvn install

Hopefully Ter will publish the antlr-snapshot directory via http soon.

Jim
Jean On Oct 31, 2008, at 10:32 AM, Terence Parr wrote: > hi, Jim Idle is building maven stuff for antlr and since we have ant > task too, i'm making new root dir for buildtools and moving antlr-ant > to ant under it. here are current permissions updated: > > write user jpfundt * //depot/code/antlr-buildtools/ant/... > write user jimi * //depot/code/antlr-buildtools/ant/... > write user jbovet * //depot/code/antlr-buildtools/ant/... > write user kroepke * //depot/code/antlr-buildtools/ant/... > write user mbenson * //depot/code/antlr-buildtools/ant/... > > Ter > _______________________________________________ > antlr-dev mailing list > antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org > http://www.antlr.org:8080/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org http://www.antlr.org:8080/mailman/listinfo/antlr-dev

<div>Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?<div><br></div>
<div>Jean</div>
<div>
<br><div>
<div>On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"> <div> On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote: <blockquote type="CITE"> Hi,

I'm trying to build ANTLR using the old ant task and it doesn't  
compile (apparently some issue with the new antlr.v3 package). I  
synced this morning with the changes from Jimi so I don't really know  
what has changed (I don't see the changelist from jimi because I don't  
have the permission). I've tried to build using maven but no success  
because it doesn't find the antlr3-maven-plugin from the repository.

Any help appreciated :-)
 </blockquote> <br> Hi Jean,<br><br> The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).<br><br> All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).<br><br> cd code/antlr-buildtools/maven/antlr3-maven-plugin<br> mvn install<br> cd code/antlr/main/runtime/Java<br> mvn install<br> ~/
 antlrsrc/code/antlr/main<br> mvn install<br><br> Hopefully Ter will publish the antlr-snapshot directory via http soon.<br><br> Jim <blockquote type="CITE"> 
Jean

On Oct 31, 2008, at 10:32 AM, Terence Parr wrote:

&gt; hi, Jim Idle is building maven stuff for antlr and since we have ant
&gt; task too, i'm making new root dir for buildtools and moving antlr-ant
&gt; to ant under it.  here are current permissions updated:
&gt;
&gt;         write user jpfundt * //depot/code/antlr-buildtools/ant/...
&gt;         write user jimi * //depot/code/antlr-buildtools/ant/...
&gt;         write user jbovet * //depot/code/antlr-buildtools/ant/...
&gt;         write user kroepke * //depot/code/antlr-buildtools/ant/...
&gt;         write user mbenson * //depot/code/antlr-buildtools/ant/...
&gt;
&gt; Ter
&gt; _______________________________________________
&gt; antlr-dev mailing list
&gt; <a href="mailto:antlr-dev@...">antlr-dev@...</a>
&gt; <a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>

_______________________________________________
antlr-dev mailing list
<a href="mailto:antlr-dev@...">antlr-dev@...</a>
<a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>
 </blockquote> </div> </blockquote>
</div>
<br>
</div>
</div>
Terence Parr | 2 Nov 2008 06:37
Gravatar

Re: moved antlr3-task for ant

Hi Jean,  should be ok:

        write user jbovet * //depot/code/antlr-buildtools/...

Ter
On Nov 1, 2008, at 3:44 PM, Jean Bovet wrote:

Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?

Jean

On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:

On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote:
Hi, I'm trying to build ANTLR using the old ant task and it doesn't compile (apparently some issue with the new antlr.v3 package). I synced this morning with the changes from Jimi so I don't really know what has changed (I don't see the changelist from jimi because I don't have the permission). I've tried to build using maven but no success because it doesn't find the antlr3-maven-plugin from the repository. Any help appreciated :-)

Hi Jean,

The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).

All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).

cd code/antlr-buildtools/maven/antlr3-maven-plugin
mvn install
cd code/antlr/main/runtime/Java
mvn install
~/ antlrsrc/code/antlr/main
mvn install

Hopefully Ter will publish the antlr-snapshot directory via http soon.

Jim
Jean On Oct 31, 2008, at 10:32 AM, Terence Parr wrote: > hi, Jim Idle is building maven stuff for antlr and since we have ant > task too, i'm making new root dir for buildtools and moving antlr-ant > to ant under it. here are current permissions updated: > > write user jpfundt * //depot/code/antlr-buildtools/ant/... > write user jimi * //depot/code/antlr-buildtools/ant/... > write user jbovet * //depot/code/antlr-buildtools/ant/... > write user kroepke * //depot/code/antlr-buildtools/ant/... > write user mbenson * //depot/code/antlr-buildtools/ant/... > > Ter > _______________________________________________ > antlr-dev mailing list > antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org > http://www.antlr.org:8080/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org http://www.antlr.org:8080/mailman/listinfo/antlr-dev


<div>Hi Jean, &nbsp;should be ok:<div><br></div>
<div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;write user jbovet * //depot/code/antlr-buildtools/...</div>
<div><br></div>
<div>Ter</div>
<div>
<div>On Nov 1, 2008, at 3:44 PM, Jean Bovet wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?<div><br></div>
<div>Jean</div>
<div>
<br><div>
<div>On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:</div>
<br class="Apple-interchange-newline
 "><blockquote type="cite"> <div> On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote: <blockquote type="CITE"> Hi,

I'm trying to build ANTLR using the old ant task and it doesn't  
compile (apparently some issue with the new antlr.v3 package). I  
synced this morning with the changes from Jimi so I don't really know  
what has changed (I don't see the changelist from jimi because I don't  
have the permission). I've tried to build using maven but no success  
because it doesn't find the antlr3-maven-plugin from the repository.

Any help appreciated :-)
 </blockquote> <br> Hi Jean,<br><br> The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).<br><br> All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).<br><br> cd code/antlr-buildtools/maven/antlr3-maven-plugin<br> mvn install<br> cd code/antlr/main/runtime/Java<br> mvn install<br> ~/
 antlrsrc/code/antlr/main<br> mvn install<br><br> Hopefully Ter will publish the antlr-snapshot directory via http soon.<br><br> Jim <blockquote type="CITE"> Jean

On Oct 31, 2008, at 10:32 AM, Terence Parr wrote:

&gt; hi, Jim Idle is building maven stuff for antlr and since we have ant
&gt; task too, i'm making new root dir for buildtools and moving antlr-ant
&gt; to ant under it.  here are current permissions updated:
&gt;
&gt;         write user jpfundt * //depot/code/antlr-buildtools/ant/...
&gt;         write user jimi * //depot/code/antlr-buildtools/ant/...
&gt;         write user jbovet * //depot/code/antlr-buildtools/ant/...
&gt;         write user kroepke * //depot/code/antlr-buildtools/ant/...
&gt;         write user mbenson * //depot/code/antlr-buildtools/ant/...
&gt;
&gt; Ter
&gt; _______________________________________________
&gt; antlr-dev mailing list
&gt; <a href="mailto:antlr-dev@...">antlr-dev@...</a>
&gt; <a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>

_______________________________________________
antlr-dev mailing list
<a href="mailto:antlr-dev@...">antlr-dev@...</a>
<a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>
 </blockquote> </div> </blockquote>
</div>
<br>
</div>
</div></blockquote>
</div>
<br>
</div>
</div>
Jean Bovet | 2 Nov 2008 18:39
Picon
Favicon

Re: moved antlr3-task for ant

Mm... actually I am using user 'bovet' which might explain why I don't see anything there. My p4 client gives that:

View:
        //depot/code/antlr-buildtools/... //bovet.desktop/antlr-buildtools/...
        //depot/code/antlr/main/... //bovet.desktop/antlr/main/...
        //depot/code/antlr/release-3.1.1/... //bovet.desktop/antlr/release-3.1.1/...
        //depot/code/examples-v3/... //bovet.desktop/examples-v3/...
        //depot/code/usf/lang/... //bovet.desktop/lang/...
        //depot/code/usf/mantra/... //bovet.desktop/mantra/...
        //depot/code/stringtemplate/java/main/... //bovet.desktop/stringtemplate/main/...
        //depot/code/stringtemplate/java/release-3.2/... //bovet.desktop/stringtemplate/release-3.2/...
        //depot/code/antlrworks/main/... //bovet.desktop/antlrworks/main/...
...

Jean

On Nov 1, 2008, at 10:37 PM, Terence Parr wrote:

Hi Jean,  should be ok:

        write user jbovet * //depot/code/antlr-buildtools/...

Ter
On Nov 1, 2008, at 3:44 PM, Jean Bovet wrote:

Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?

Jean

On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:

On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote:
Hi, I'm trying to build ANTLR using the old ant task and it doesn't compile (apparently some issue with the new antlr.v3 package). I synced this morning with the changes from Jimi so I don't really know what has changed (I don't see the changelist from jimi because I don't have the permission). I've tried to build using maven but no success because it doesn't find the antlr3-maven-plugin from the repository. Any help appreciated :-)

Hi Jean,

The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).

All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).

cd code/antlr-buildtools/maven/antlr3-maven-plugin
mvn install
cd code/antlr/main/runtime/Java
mvn install
~/antlrsrc/code/antlr/main
mvn install

Hopefully Ter will publish the antlr-snapshot directory via http soon.

Jim
Jean On Oct 31, 2008, at 10:32 AM, Terence Parr wrote: > hi, Jim Idle is building maven stuff for antlr and since we have ant > task too, i'm making new root dir for buildtools and moving antlr-ant > to ant under it. here are current permissions updated: > > write user jpfundt * //depot/code/antlr-buildtools/ant/... > write user jimi * //depot/code/antlr-buildtools/ant/... > write user jbovet * //depot/code/antlr-buildtools/ant/... > write user kroepke * //depot/code/antlr-buildtools/ant/... > write user mbenson * //depot/code/antlr-buildtools/ant/... > > Ter > _______________________________________________ > antlr-dev mailing list > antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org > http://www.antlr.org:8080/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list antlr-dev-ErkRXerACLvYtjvyW6yDsg@public.gmane.org http://www.antlr.org:8080/mailman/listinfo/antlr-dev



<div>Mm... actually I am using user 'bovet' which might explain why I don't see anything there. My p4 client gives that:<div><br></div>
<div>
<div>View:</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/antlr-buildtools/... //bovet.desktop/antlr-buildtools/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/antlr/main/... //bovet.desktop/antlr/main/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/antlr/release-3.1.1/... //bovet.desktop/antlr/release-3.1.1/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/examples-v3/... //bovet.desktop/examples-v3/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/usf/lang/... //bovet.desktop/lang/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/usf/mantra/... //bovet.desktop/mantra/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/stringtemplate/java/main/... //bovet.desktop/stringtemplate/main/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/stringtemplate/java/release-3.2/... //bovet.desktop/stringtemplate/release-3.2/...</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//depot/code/antlrworks/main/... //bovet.desktop/antlrworks/main/...</div>
<div>...</div>
<div><br></div>
<div>Jean</div>
<div><br></div>
<div>
<div>On Nov 1, 2008, at 10:37 PM, Terence Parr wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Jean, &nbsp;should be ok:<div><br></div>
<div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;write user jbovet * //depot/code/antlr-buildtools/...</div>
<div><br></div>
<div>Ter</div>
<div>
<div>On Nov 1, 2008, at 3:44 PM, Jean Bovet wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks Jim. I am unable to get the revision for the antlr-buildtools/maven directory (nor can I see your changelist content). Is that a p4 permission problem?<div><br></div>
<div>Jean</div>
<div>
<br><div>
<div>On Nov 1, 2008, at 2:36 PM, Jim Idle wrote:</div>
<br class="Apple-interchange-newline"><blockquote type="cite"> <div> On Sat, 2008-11-01 at 12:29 -0700, Jean Bovet wrote: <blockquote type="CITE"> Hi,

I'm trying to build ANTLR using the old ant task and it doesn't  
compile (apparently some issue with the new antlr.v3 package). I  
synced this morning with the changes from Jimi so I don't really know  
what has changed (I don't see the changelist from jimi because I don't  
have the permission). I've tried to build using maven but no success  
because it doesn't find the antlr3-maven-plugin from the repository.

Any help appreciated :-)
 </blockquote> <br> Hi Jean,<br><br> The maven task is now in the antlr snapshot repository for maven, however the snapshot is not yet being published via http (I blame Ter).<br><br> All that has changed really though is that the grammar files are moved to org.antlr.grammar.v2 and org.antlr.grammar.v3 so you don't need to copy the .txt for the tokens. I will try to fix the ant build tomorrow, but if you sync the maven3 plugin from //depot/code/antlr-buildtools/maven then cd directory that contains pom.xml and type mvn install, then you will have the maven3 plugin locally and build antlr using maven (build the runtime first, then build the tool jar).<br><br> cd code/antlr-buildtools/maven/antlr3-maven-plugin<br> mvn install<br> cd code/antlr/main/runtime/Java<br> mvn install<br> ~/antlrsrc/code/antlr/main<br> mvn install<br><br> Hopefully Ter will publish the antlr-snapshot directory via http soon.<br><br> Jim <blockquote type="CITE"> Jean

On Oct 31, 2008, at 10:32 AM, Terence Parr wrote:

&gt; hi, Jim Idle is building maven stuff for antlr and since we have ant
&gt; task too, i'm making new root dir for buildtools and moving antlr-ant
&gt; to ant under it.  here are current permissions updated:
&gt;
&gt;         write user jpfundt * //depot/code/antlr-buildtools/ant/...
&gt;         write user jimi * //depot/code/antlr-buildtools/ant/...
&gt;         write user jbovet * //depot/code/antlr-buildtools/ant/...
&gt;         write user kroepke * //depot/code/antlr-buildtools/ant/...
&gt;         write user mbenson * //depot/code/antlr-buildtools/ant/...
&gt;
&gt; Ter
&gt; _______________________________________________
&gt; antlr-dev mailing list
&gt; <a href="mailto:antlr-dev@...">antlr-dev@...</a>
&gt; <a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>

_______________________________________________
antlr-dev mailing list
<a href="mailto:antlr-dev@...">antlr-dev@...</a>
<a href="http://www.antlr.org:8080/mailman/listinfo/antlr-dev">http://www.antlr.org:8080/mailman/listinfo/antlr-dev</a>
 </blockquote> </div> </blockquote>
</div>
<br>
</div>
</div></blockquote>
</div>
<br>
</div>
</div></blockquote>
</div>
<br>
</div>
</div>
Sam Harwell | 4 Nov 2008 05:18

Grammar.isValidSet() functionality

Based on the current grammar, this rule is not a set:

 

NUMBER             :               '0'..'9'

                |              'A'..'Z'

                |              '_'

                ;

 

But the following is not:

 

NUMBER             :               '0'..'9'

                |              'A'..'Z'

                |              ('_')

                ;

 

By modifying testBlockAsSet, testSetElement, and testSetRule to return [int numAlts], you can keep track of more allowable sets, including those that have a fragment rule as an element. Grammar.isValidSet() then returns true if no exception is thrown and the returned number of alts is greater than 1.

 

Sam

<div>

<div class="Section1">

<p class="MsoNormal">Based on the current grammar, this rule is not a set:<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">NUMBER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '0'..'9'<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'A'..'Z'<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '_'<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">But the following is not:<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">NUMBER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '0'..'9'<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'A'..'Z'<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ('_')<p></p></p>

<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">By modifying testBlockAsSet, testSetElement, and testSetRule
to return [int numAlts], you can keep track of more allowable sets, including
those that have a fragment rule as an element. Grammar.isValidSet() then
returns true if no exception is thrown and the returned number of alts is
greater than 1.<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Sam<p></p></p>

</div>

</div>
Johannes Luber | 4 Nov 2008 18:20
Picon
Picon

Re: Grammar.isValidSet() functionality

Sam Harwell schrieb:
> Based on the current grammar, this rule is not a set:

Do you really want the "not" there? Otherwise the second example has a
double negation.

Johannes
> 
>  
> 
> NUMBER             :               '0'..'9'
> 
>                 |              'A'..'Z'
> 
>                 |              '_'
> 
>                 ;
> 
>  
> 
> But the following is not:
> 
>  
> 
> NUMBER             :               '0'..'9'
> 
>                 |              'A'..'Z'
> 
>                 |              ('_')
> 
>                 ;
> 
>  
> 
> By modifying testBlockAsSet, testSetElement, and testSetRule to return
> [int numAlts], you can keep track of more allowable sets, including
> those that have a fragment rule as an element. Grammar.isValidSet() then
> returns true if no exception is thrown and the returned number of alts
> is greater than 1.
> 
>  
> 
> Sam
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> antlr-dev mailing list
> antlr-dev@...
> http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Terence Parr | 4 Nov 2008 18:52
Gravatar

Re: Grammar.isValidSet() functionality

correct. it's looking for a pattern.  we could do ((((('_'))))) as well.
Ter
On Nov 3, 2008, at 8:18 PM, Sam Harwell wrote:

> Based on the current grammar, this rule is not a set:
>
> NUMBER             :               '0'..'9'
>                 |              'A'..'Z'
>                 |              '_'
>                 ;
>
> But the following is not:
>
> NUMBER             :               '0'..'9'
>                 |              'A'..'Z'
>                 |              ('_')
>                 ;
>
> By modifying testBlockAsSet, testSetElement, and testSetRule to  
> return [int numAlts], you can keep track of more allowable sets,  
> including those that have a fragment rule as an element.  
> Grammar.isValidSet() then returns true if no exception is thrown and  
> the returned number of alts is greater than 1.
>
> Sam
> _______________________________________________
> antlr-dev mailing list
> antlr-dev@...
> http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Sam Harwell | 4 Nov 2008 19:09

Unit test differences between Java and C# port

The following tests that fail in the Java code (based on their comments / CL5370) all pass in my C# port. Maybe we can figure out what the difference is? Do you have any information on the current results of these tests?

 

testAStar_immediateTailRecursion

testWildcardInTreeGrammar

testOrPredicates

testGatedPred

testGatedPredInCyclicDFA

testTemplateConstructor

testTemplateConstructorNoArgs

testIndirectTemplateConstructor

 

Sam

<div>

<div class="Section1">

<p class="MsoNormal">The following tests that fail in the Java code (based on
their comments / CL5370) all pass in my C# port. Maybe we can figure out what
the difference is? Do you have any information on the current results of these
tests?<p></p></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal"><span>testAStar_immediateTailRecursion<p></p></span></p>

<p class="MsoNormal"><span>testWildcardInTreeGrammar<p></p></span></p>

<p class="MsoNormal"><span>testOrPredicates<p></p></span></p>

<p class="MsoNormal"><span>testGatedPred<p></p></span></p>

<p class="MsoNormal"><span>testGatedPredInCyclicDFA<p></p></span></p>

<p class="MsoNormal"><span>testTemplateConstructor<p></p></span></p>

<p class="MsoNormal"><span>testTemplateConstructorNoArgs<p></p></span></p>

<p class="MsoNormal"><span>testIndirectTemplateConstructor<p></p></span></p>

<p class="MsoNormal"><p>&nbsp;</p></p>

<p class="MsoNormal">Sam<p></p></p>

</div>

</div>

Gmane