[il-antlr-interest: 32835] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread shmuel siegel
On 6/20/2011 1:27 AM, Terence Parr wrote:

 I'm hoping to release 3.4 this week
Is there a compatible AntlrWorks?


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32836] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Julien BLACHE
Hi,

 The other thing is that the C target has not been tested at all
 really. If someone could report back on how it works, that would be
 great ( including the debugging socket protocol to ANTLRWorks).

I gave it a very quick try on my grammars (written for 3.2) and it
doesn't look good :/ I've been following the list for some time but I
can't remember what, if any, adaptations are needed for 3.4, so I'll
check back on that (pointers appreciated if you have some handy).

Where can I find the C runtime for 3.4? The download directory still has
an old 3.3 snapshot.

Right now the code generated by antlr is incomplete; generated C files
are much shorter than those generated by 3.2 and actions are missing
entirely in my AST grammar.

Quick comparison, line counts:
ANTLR 3.2ANTLR 3.4
DAAP2SQL.c927  585
DAAPLexer.c   1092 934
DAAPParser.c  1014 901

A showstopper for C code is that -depends is broken; the only output is:
 /dependencies()

There also seems to be an issue wrt locale settings; unless running with
LC_ALL=C, antlr bails out on me looking for
org/antlr/tool/templates/messages/languages/fr.stg.

Cosmetic issue, but still, -version returns:
 ANTLR Parser Generator  Version ${project.version} ${buildNumber}

JB.

-- 
Julien BLACHE   http://www.jblache.org 
j...@jblache.org  GPG KeyID 0xF5D65169

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32840] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Simon Marchi
Hello,

The generation of my parser makes the Tool go in an infinite loop

Ant build output: http://paste.ubuntu.com/629867/

Also, as already reported, the version number not correctly printing
(prints ${project.version} ${buildNumber} instead).

Simon

On Sun, Jun 19, 2011 at 18:27, Terence Parr pa...@cs.usfca.edu wrote:
 Hi, I'm hoping to release 3.4 this week but a number of things have changed 
 and so it would be great if people could try out these releases with their 
 grammars. Most important change is that the tool itself no longer uses ANTLR 
 v2 or ST 3.2.1, which also used ANTLR v2. The tool itself is now completely 
 BSD clean, which makes a big difference because it can be included in eclipse 
 projects such as xtext.  Important caveat here: the tool should be backward 
 compatible with 3.3 so, if you use templates as part of your grammars, they 
 will still use StringTemplate 3.2.1. For example, this method is still the 
 same in generated parsers:

 // StringTemplateGroup is a ST 3.2.1 class not ST v4
 public void setTemplateLib(StringTemplateGroup templateLib) {
  this.templateLib = templateLib;
 }

 The other thing is that the C target has not been tested at all really. If 
 someone could report back on how it works, that would be great ( including 
 the debugging socket protocol to ANTLRWorks).

 The two files you can download for testing are as follows:

 http://antlr.org/download/antlr-3.4-complete.jar
        antlr tool (uses ST 4.0.2)
        runtime
        gunit (references ST 3.2.1 classes)
        ST 3.2.1 (references ANTLR v2 classes)
        antlr 2.7.7 (needed by ST 3.2.1)
        ST 4.0.2 (uses only ANTLR 3.4)

 So, in summary, antlr-3.4-complete.jar is one jar file bigger to include ST 
 4.0.2. (Actually when we release, I'm hoping that ST 4.0.3 will be done).

 For those that need to be squeaky clean BSD, the following jar file contains 
 just the ANTLR tool itself and depended ST v4:

 http://antlr.org/download/antlr-3.4.jar
        antlr tool (uses ST 4.0.2)
        runtime
        gunit (references ST 3.2.1 classes)
        ST 4.0.2

 If you don't use StringTemplate in your grammars then antlr-3.4.jar is all 
 you need. Nothing in that jar has anything to do with the unclean v2 stuff.

 A big thanks goes to Sam Harwell who converted all of the tool grammars to v3 
 from v2! A big nasty job.

 Thanks!
 Ter


 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe: 
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32842] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread A Z
How is this jar different than 3.2? I tried the same command

java -jar antlr-3.4.jar grammar.g

but I get an error message:

Invalid or corrupt jarfile antlr-3.4.jar



On Mon, Jun 20, 2011 at 5:55 AM, Julien BLACHE j...@jblache.org wrote:

 Hi,

  The other thing is that the C target has not been tested at all
  really. If someone could report back on how it works, that would be
  great ( including the debugging socket protocol to ANTLRWorks).

 I gave it a very quick try on my grammars (written for 3.2) and it
 doesn't look good :/ I've been following the list for some time but I
 can't remember what, if any, adaptations are needed for 3.4, so I'll
 check back on that (pointers appreciated if you have some handy).

 Where can I find the C runtime for 3.4? The download directory still has
 an old 3.3 snapshot.

 Right now the code generated by antlr is incomplete; generated C files
 are much shorter than those generated by 3.2 and actions are missing
 entirely in my AST grammar.

 Quick comparison, line counts:
ANTLR 3.2ANTLR 3.4
 DAAP2SQL.c927  585
 DAAPLexer.c   1092 934
 DAAPParser.c  1014 901

 A showstopper for C code is that -depends is broken; the only output is:
  /dependencies()

 There also seems to be an issue wrt locale settings; unless running with
 LC_ALL=C, antlr bails out on me looking for
 org/antlr/tool/templates/messages/languages/fr.stg.

 Cosmetic issue, but still, -version returns:
  ANTLR Parser Generator  Version ${project.version} ${buildNumber}

 JB.

 --
 Julien BLACHE   http://www.jblache.org
 j...@jblache.org  GPG KeyID 0xF5D65169

 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe:
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32843] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Julien BLACHE
A Z asicaddr...@gmail.com wrote:

Hi,

 How is this jar different than 3.2? I tried the same command

java -jar antlr-3.4.jar grammar.g

 but I get an error message:
 Invalid or corrupt jarfile antlr-3.4.jar

Same issue here. It works when invoked this way
  java -cp antlr-3.4.jar org.antlr.Tool grammar.g

I'll leave it up to the Java-literate to investigate/explain/fix ;)

(Sun^WOracle Java 1.6.0_26 if it makes any difference)

JB.

-- 
Julien BLACHE   http://www.jblache.org 
j...@jblache.org  GPG KeyID 0xF5D65169

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32844] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Bart Kiers
The file `/META-INF/MANIFEST.MF` is missing the 'Main-Class' attribute. Add
the line:

Main-Class: org.antlr.Tool

to the file (inside the JAR) and all should be OK.

Regards,

Bart.


On Mon, Jun 20, 2011 at 6:28 PM, Julien BLACHE j...@jblache.org wrote:

 A Z asicaddr...@gmail.com wrote:

 Hi,

  How is this jar different than 3.2? I tried the same command
 
 java -jar antlr-3.4.jar grammar.g
 
  but I get an error message:
  Invalid or corrupt jarfile antlr-3.4.jar

 Same issue here. It works when invoked this way
  java -cp antlr-3.4.jar org.antlr.Tool grammar.g

 I'll leave it up to the Java-literate to investigate/explain/fix ;)

 (Sun^WOracle Java 1.6.0_26 if it makes any difference)

 JB.

 --
 Julien BLACHE   http://www.jblache.org
 j...@jblache.org  GPG KeyID 0xF5D65169

 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe:
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32849] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Terence Parr

On Jun 20, 2011, at 9:09 AM, A Z wrote:

 How is this jar different than 3.2? I tried the same command
 
 java -jar antlr-3.4.jar grammar.g
 
 but I get an error message:
 
 Invalid or corrupt jarfile antlr-3.4.jar

ooops. didn't know people used that. fixed jar will push soon.

Ter

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32850] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Terence Parr
Ok, updated.

 http://antlr.org/download/antlr-3.4rc1-complete.jar
 http://antlr.org/download/antlr-3.4rc1.jar

fixed -depend thing and version thing:

~ $ java -jar /usr/local/lib/antlr-3.4rc1-complete.jar
ANTLR Parser Generator  Version 3.4

Ter

On Jun 19, 2011, at 3:27 PM, Terence Parr wrote:

 Hi, I'm hoping to release 3.4 this week but a number of things have changed 
 and so it would be great if people could try out these releases with their 
 grammars. Most important change is that the tool itself no longer uses ANTLR 
 v2 or ST 3.2.1, which also used ANTLR v2. The tool itself is now completely 
 BSD clean, which makes a big difference because it can be included in eclipse 
 projects such as xtext.  Important caveat here: the tool should be backward 
 compatible with 3.3 so, if you use templates as part of your grammars, they 
 will still use StringTemplate 3.2.1. For example, this method is still the 
 same in generated parsers:
 
 // StringTemplateGroup is a ST 3.2.1 class not ST v4
 public void setTemplateLib(StringTemplateGroup templateLib) {
  this.templateLib = templateLib;
 }
 
 The other thing is that the C target has not been tested at all really. If 
 someone could report back on how it works, that would be great ( including 
 the debugging socket protocol to ANTLRWorks).
 
 The two files you can download for testing are as follows:
 
 http://antlr.org/download/antlr-3.4-complete.jar
   antlr tool (uses ST 4.0.2)
   runtime
   gunit (references ST 3.2.1 classes)
   ST 3.2.1 (references ANTLR v2 classes)
   antlr 2.7.7 (needed by ST 3.2.1)
   ST 4.0.2 (uses only ANTLR 3.4)
 
 So, in summary, antlr-3.4-complete.jar is one jar file bigger to include ST 
 4.0.2. (Actually when we release, I'm hoping that ST 4.0.3 will be done).
 
 For those that need to be squeaky clean BSD, the following jar file contains 
 just the ANTLR tool itself and depended ST v4:
 
 http://antlr.org/download/antlr-3.4.jar
   antlr tool (uses ST 4.0.2)
   runtime
   gunit (references ST 3.2.1 classes)
   ST 4.0.2
 
 If you don't use StringTemplate in your grammars then antlr-3.4.jar is all 
 you need. Nothing in that jar has anything to do with the unclean v2 stuff.
 
 A big thanks goes to Sam Harwell who converted all of the tool grammars to v3 
 from v2! A big nasty job.
 
 Thanks!
 Ter
 
 
 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe: 
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32851] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Julien BLACHE
Terence Parr pa...@cs.usfca.edu wrote:

Hi,

 There also seems to be an issue wrt locale settings; unless running with
 LC_ALL=C, antlr bails out on me looking for
 org/antlr/tool/templates/messages/languages/fr.stg.

 weird. this hasn't changed.

Could be caused by my locales settings on this system, I'll try on
another system with different settings tomorrow. If you think of
anything that can be done to track that down, let me know.

JB.

-- 
Julien BLACHE   http://www.jblache.org 
j...@jblache.org  GPG KeyID 0xF5D65169

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32853] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread A Z
Thanks, that Java command worked for me.

The good news is the C code was generated with no grammar issues.
Unfortunately the C code doesn't compile:

- The characters '\=' are used in comparisons
- '_empty' is not defined
- There are lots of these, with varying numbers of altSwitchCase(), which is
also not defined.
switch (alt48)
{

altSwitchCase(i,a)altSwitchCase(i,a)altSwitchCase(i,a)altSwitchCase(i,a);
}
- Many functions starting with 'FOLLOW_set_in_*' are not defined. These seem
to be related to rules in which all the alternatives are single tokens.



On Mon, Jun 20, 2011 at 11:28 AM, Julien BLACHE j...@jblache.org wrote:

 A Z asicaddr...@gmail.com wrote:

 Hi,

  How is this jar different than 3.2? I tried the same command
 
 java -jar antlr-3.4.jar grammar.g
 
  but I get an error message:
  Invalid or corrupt jarfile antlr-3.4.jar

 Same issue here. It works when invoked this way
  java -cp antlr-3.4.jar org.antlr.Tool grammar.g

 I'll leave it up to the Java-literate to investigate/explain/fix ;)

 (Sun^WOracle Java 1.6.0_26 if it makes any difference)

 JB.

 --
 Julien BLACHE   http://www.jblache.org
 j...@jblache.org  GPG KeyID 0xF5D65169

 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe:
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32854] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Terence Parr
If you can send me your grammar, I'll poke around. Jim might be able to work on 
this today too.

Ter
On Jun 20, 2011, at 12:13 PM, A Z wrote:

 Thanks, that Java command worked for me.
 
 The good news is the C code was generated with no grammar issues.
 Unfortunately the C code doesn't compile:
 
 - The characters '\=' are used in comparisons
 - '_empty' is not defined
 - There are lots of these, with varying numbers of altSwitchCase(), which is
 also not defined.
switch (alt48)
{
 
 altSwitchCase(i,a)altSwitchCase(i,a)altSwitchCase(i,a)altSwitchCase(i,a);
}
 - Many functions starting with 'FOLLOW_set_in_*' are not defined. These seem
 to be related to rules in which all the alternatives are single tokens.
 
 
 
 On Mon, Jun 20, 2011 at 11:28 AM, Julien BLACHE j...@jblache.org wrote:
 
 A Z asicaddr...@gmail.com wrote:
 
 Hi,
 
 How is this jar different than 3.2? I tried the same command
 
 java -jar antlr-3.4.jar grammar.g
 
 but I get an error message:
 Invalid or corrupt jarfile antlr-3.4.jar
 
 Same issue here. It works when invoked this way
 java -cp antlr-3.4.jar org.antlr.Tool grammar.g
 
 I'll leave it up to the Java-literate to investigate/explain/fix ;)
 
 (Sun^WOracle Java 1.6.0_26 if it makes any difference)
 
 JB.
 
 --
 Julien BLACHE   http://www.jblache.org
 j...@jblache.org  GPG KeyID 0xF5D65169
 
 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe:
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address
 
 
 List: http://www.antlr.org/mailman/listinfo/antlr-interest
 Unsubscribe: 
 http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.



[il-antlr-interest: 32857] Re: [antlr-interest] test release of antlr 3.4

2011-06-20 Thread Terence Parr
right after 3.4 is released
On Jun 20, 2011, at 3:17 PM, Douglas Godfrey wrote:

 When will an updated AntlrWorks be available that uses Antlr 3.4?
 
 


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
il-antlr-interest group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.