phkim | 1 Apr 2005 07:03
Picon

Re: [groovy-dev] Unicode Scanners and java.g

Jeremy Rayner wrote:
> Hiya,
>   In lieu of trawling through the historical copies of java.g, what are the
> reasons in Michael Studman's latest copy for having the scanner use
> the following...
> 
> charVocabulary='\u0003'..'\u7FFE'
> 
> I understand of course that the top end of this (8bit unicode I assume) is not
> treading on the toes of EOF (i.e. \u7FFF as per
> http://www.antlr.org/doc/lexer.html#unicode )
> 
> But why are the 3 characters '\u0000', '\u0001' and '\u0002' left out?
> What are the design decisions behind that?
> 
> 
> Thanks for a great tool Ter, Groovy is on the cusp of releasing it's
> first antlr based groovy compiler very soon now, yay.
> 

I have read http://www.antlr.org/doc/lexer.html#unicode
whers charVocabulary is defined as:

     charVocabulary='\u0000'..'\uFFFE';

That is, I mean that the 3 characters '\u0000', '\u0001' and '\u0002' 
should be contained in scanning characters.

I have written a Java example and a Groovy example.

(Continue reading)

John Rose | 4 Apr 2005 19:58
Picon
Gravatar

[groovy-dev] multiple parser builds under maven?

Whenever I build from the command line, the parser generator runs more  
than once.
Is this a known problem with the project file, or is it likely to be a  
problem with my system configuration?
(See the two occurrences of the string 'jGuru' below.)
Thanks.

-- John
  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Plugin 'maven-deploy-plugin' in project 'groovy' is not available
build:start:

java:prepare-filesystem:

java:compile:
generate:
     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
Codehaus/groovy/groovy-core/src/main/org/codehaus/groovy/antlr/parser/ 
GroovyRecognizer.java
     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
Codehaus/groovy/groovy-core/src/main/org/codehaus/groovy/antlr/parser/ 
GroovyLexer.java
     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
Codehaus/groovy/groovy-core/src/main/org/codehaus/groovy/antlr/parser/ 
GroovyTokenTypes.java
     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
(Continue reading)

jastrachan | 5 Apr 2005 09:06
Picon

Re: [groovy-dev] multiple parser builds under maven?

I get this too - there's some funny with our maven.xml I think.

On 4 Apr 2005, at 18:58, John Rose wrote:
> Whenever I build from the command line, the parser generator runs more  
> than once.
> Is this a known problem with the project file, or is it likely to be a  
> problem with my system configuration?
> (See the two occurrences of the string 'jGuru' below.)
> Thanks.
>
> -- John
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
>
> Plugin 'maven-deploy-plugin' in project 'groovy' is not available
> build:start:
>
> java:prepare-filesystem:
>
> java:compile:
> generate:
>     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
> Codehaus/groovy/groovy-core/src/main/org/codehaus/groovy/antlr/parser/ 
> GroovyRecognizer.java
>     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
> Codehaus/groovy/groovy-core/src/main/org/codehaus/groovy/antlr/parser/ 
> GroovyLexer.java
>     [delete] Deleting: /Users/roses/Documents/Work/Groovy Project/From  
(Continue reading)

Guillaume Laforge | 6 Apr 2005 09:02
Picon
Gravatar

[groovy-dev] Groovy JSR 1 released!

Dear users, dear developers, and dear JSR participants,

We're glad to announce the release of groovy-1.0-jsr-01!

That's not yet the final release obviously, but that's our first version
which includes the new parser by default. We'll have a few jsr-x versions
till this summer, two or three more before the final 1.0 release.

This new version contains many bug fixes, and the new parser implements
a fair number of the decisions that have been taken as part of the JSR
process for standardizing the Groovy scripting language.

We've prepared a page listing migration notes to follow to upgrade your
own scripts to the new syntax. If you've got some migration problems,
don't hesitate to contact us through the mailing lists.

http://groovy.codehaus.org/Migration+From+Classic+to+JSR+syntax

Some of the notable changes are about:
- Introduction of a def keyword
- Parameter separator in the closure syntax
- Safe navigation
- Property keyword
- Array creation
- float and double notation
- Explicit method pointer syntax
- No 'do … while()' syntax
- 'No Dumb Expression' rule
- Strings and GStrings
- Assertions
(Continue reading)

Guillaume Laforge | 6 Apr 2005 09:10
Picon
Gravatar

[groovy-dev] Re: Groovy JSR 1 released!

I've forgotten to give you the download link :-)
It's always the same URL as usual:

http://groovy.codehaus.org/Download

The distribution (source or binary) are named like: "groovy-1.0-jsr-0..."

Sorry for that little omission :-)

--

-- 
Guillaume Laforge
http://glaforge.free.fr/weblog/?catid=2

Guillaume Laforge | 6 Apr 2005 09:48
Picon
Gravatar

[groovy-dev] Additional release notes...

Here are some additional notes from Jeremy:

* enabled the JSR parser by default in groovy-jsr-01 onwards
* moved JSR antlr parser into groovy-core
* migrated Console to the JSR syntax
* updated the test cases to use JSR parser syntax

* Added Unicode reader to JSR lexer

* BigDecimals with value 0 can have every scale, so a fix to the
rescaling was needed

* http://docs.codehaus.org/pages/viewpage.action?pageId=22019
* http://docs.codehaus.org/display/GroovyJSR/2005/04/01/grammar+notes

* Add string literal (and string constructor) format for regular
expression strings. Example:  "football".replaceAll(/foo/, "Bar")

* new closure delimiter (single arrow) ->

* Incorporated http://tonicsystems.com/products/jarjar/ into building
the embeddable jar (groovy-all-x.jar)

* added default imports to java.lang, java.io, java.net, java.util

* allow coercion from List/array/collections to types like Point,
Color, Dimension. Dimension d = [1, 2]

* http://groovy.codehaus.org/From+source+code+to+bytecode

(Continue reading)

Russel Winder | 6 Apr 2005 12:39
Picon
Gravatar

[groovy-dev] Can't build Groovy

Well actually I can execute "maven clean".

I just fully updated to CVS and tried to clean with the command above
and it downloaded various jars and then:

The build cannot continue because of the following unsatisfied
dependency:

classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar; path override
doesn't
exist: /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar

--

-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel@...
jastrachan | 6 Apr 2005 12:45
Picon

Re: [groovy-dev] Can't build Groovy

after your CVS update, do you have a 'lib' dir inside groovy-core witha  
classworlds*.jar inside?

On 6 Apr 2005, at 11:39, Russel Winder wrote:

> Well actually I can execute "maven clean".
>
> I just fully updated to CVS and tried to clean with the command above
> and it downloaded various jars and then:
>
> The build cannot continue because of the following unsatisfied
> dependency:
>
> classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar; path override
> doesn't
> exist:  
> /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1- 
> alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar
>
>
> -- 
> Russel.
> ====================================================
> Dr Russel Winder                +44 20 7585 2200
> 41 Buckmaster Road              +44 7770 465 077
> London SW11 1EN, UK             russel@...
>

James
-------
(Continue reading)

Russel Winder | 6 Apr 2005 12:51
Picon
Gravatar

Re: [groovy-dev] Can't build Groovy

James,

On Wed, 2005-04-06 at 11:45 +0100, jastrachan@... wrote:
> after your CVS update, do you have a 'lib' dir inside groovy-core witha  
> classworlds*.jar inside?

Yes.

I have maven 1.0.2 and the checkout is totally up to date according to
cvs update.  This is weird.  I guess the issue is something to do with
project.properties and maven?

The build cannot continue because of the following unsatisfied dependency:

classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar; path override doesn't exist: /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar

Total time: 2 seconds
Finished at: Wed Apr 06 11:48:27 BST 2005

512 elon:/home/share/Software/CheckOuts/groovy/groovy-core
|> ls lib
./  ../  classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar  CVS/
513 elon:/home/share/Software/CheckOuts/groovy/groovy-core
|> ll /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar
-rw-------  1 russel russel 38260 2005-04-05 22:36 /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar
514 elon:/home/share/Software/CheckOuts/groovy/groovy-core
|>

--

-- 
Russel.
(Continue reading)

jastrachan | 6 Apr 2005 20:47
Picon

Re: [groovy-dev] Can't build Groovy

CVS HEAD now has a normal jar dependency on classworlds again - as  
we've got the jar into ibiblio. This should fix your issue.

On 6 Apr 2005, at 11:39, Russel Winder wrote:
> Well actually I can execute "maven clean".
>
> I just fully updated to CVS and tried to clean with the command above
> and it downloaded various jars and then:
>
> The build cannot continue because of the following unsatisfied
> dependency:
>
> classworlds-1.1-alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar; path override
> doesn't
> exist:  
> /home/share/Software/CheckOuts/groovy/groovy-core/lib/classworlds-1.1- 
> alpha-2-SNAPSHOT-NO-SYSTEM-EXIT.jar
>
>
> -- 
> Russel.
> ====================================================
> Dr Russel Winder                +44 20 7585 2200
> 41 Buckmaster Road              +44 7770 465 077
> London SW11 1EN, UK             russel@...
>

James
-------
http://radio.weblogs.com/0112098/
(Continue reading)


Gmane