February 2005 Commit Log

Number of Commits:
217
Number of Active Developers:
12
phk 2005-02-28 16:54

Change a member information.

10 lines of code changed in:

jstrachan 2005-02-28 15:47

enabled the JSR parser by default in groovy-jsr-01 onwards

1 lines of code changed in:

jstrachan 2005-02-28 15:46

updated the version number ready for jsr-01 release...

1 lines of code changed in:

blackdrag 2005-02-28 14:56

execute rights fix

5 lines of code changed in:

jstrachan 2005-02-28 11:36

getting ready for beta-10

2 lines of code changed in:

jstrachan 2005-02-28 11:34

build patches getting ready for beta-10

14 lines of code changed in:

phk 2005-02-28 06:03

For both of New and Classic Groovy, add a test method: void testAmbiguityOfBitwiseOr(). How to avoid the ambiguity of the bitOr operation(|) : closure = { x | y }

153 lines of code changed in:

phk 2005-02-27 15:28

Support the power operators ** and ** for New Groovy. For example, x = 3; x **= 2; assert x == 9; assert -x**2 == -81; assert -x**2 == -(x**2); assert x**-1 == 1/x

21 lines of code changed in:

phk 2005-02-27 15:20

Support the power operator(**) and the power assign operator(**=) for Classic/New Groovy. Foror example, x = 3**2; assert -x**2 == -81; assert -x**2 == -(x**2); assert x**-1 == 1/x

108 lines of code changed in:

phk 2005-02-27 08:13

Support the math power operator ** for New Groovy (for example, assert -3**2 **= -9 ). But the power assignment operator **= is not supported yet.

22 lines of code changed in:

jstrachan 2005-02-25 20:16

more working tests - yay!

2 lines of code changed in:

jez 2005-02-25 18:57

* added optional nls to if/while/try/catch/etc before opening curly brace

o these are logged as warnings, available if you call GroovyRecognizer.getWarningList()

48 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+48 -14)
jstrachan 2005-02-25 15:21

fixes for expressions like new <type>[1234]

9 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: AntlrParserPlugin.java (+5 -1)
  • groovy/jsr/ideas/parsers/antlr/test/org/codehaus/groovy/antlr: AllTests.java (+4 -6)
jez 2005-02-25 14:50

* Added ability to declare new Arrays with no initializer

i.e.



def foo = new String[10]

3 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+3 -7)
jstrachan 2005-02-25 14:33

fixed a bunch more tests now that groovy arrays are just about working

123 lines of code changed in:

jstrachan 2005-02-25 14:06

enabled more testing now that Antlr seems to handle arrays nicely

0 lines of code changed in:

jez 2005-02-25 13:56

* reintroduced ARRAY_DECLARATOR for built in types (along Studman's original design)

3 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+3 -2)
blackdrag 2005-02-25 12:41

avoid unwraping

3 lines of code changed in:

jez 2005-02-25 11:09

* Added LexerFrame from Santhosh Kumar T



http://www.antlr.org/share/1073493403186/index.html



usage:

java -cp groovyc-0.0.2.jar org.codehaus.groovy.antlr.LexerFrame



then select the groovy source file of your choice.

0 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: LexerFrame.java (new)
jstrachan 2005-02-25 09:58

added more test cases for array coercion

35 lines of code changed in:

jstrachan 2005-02-25 09:54

handled an issue in the AST generation (due to Antlr changes) better and have most of the array coerce tests working now

20 lines of code changed in:

jstrachan 2005-02-25 09:39

documented the array failures more

66 lines of code changed in:

blackdrag 2005-02-24 23:41

fixed a little class loading bug caused by the fix of GROOVY-375

15 lines of code changed in:

jstrachan 2005-02-24 21:08

Patch to AST generation after Antlr grammar changes

7 lines of code changed in:

jez 2005-02-24 20:35

* Added Mike Spille's suggestion of an AST class for antlr that tracks the line/column information of the original source code



Thanks Mike :-)



* Started amendments to attempt to fix Array Declarators

7 lines of code changed in:

blackdrag 2005-02-24 17:45

corrected a little bug when setting fields and added an exception if someone wants to set a private field

6 lines of code changed in:

jstrachan 2005-02-24 16:33

Added most of the guts for auto-list and array coercions. Got a few parser glitches when parsing array types; but other than that its looking good

408 lines of code changed in:

blackdrag 2005-02-24 14:10

better error message when accessing private fields

82 lines of code changed in:

jstrachan 2005-02-24 12:14

put back classic-tests I'd accidentally modified (whoops!)

22 lines of code changed in:

jstrachan 2005-02-24 10:29

Fixed a bunch more test cases; it'll be much easier to see the wood for the trees once New Groovy is integrated into groovy-core after beta-10

101 lines of code changed in:

jstrachan 2005-02-24 09:10

Tightened up the constructor parsing some more to catch more typos in the parser

26 lines of code changed in:

jstrachan 2005-02-24 08:30

Applied patch for GROOVY-375, many thanks Scott Ferguson!

63 lines of code changed in:

jstrachan 2005-02-24 08:04

Applied patch for GROOVY-325, many thanks Peter Brant!

3 lines of code changed in:

jstrachan 2005-02-24 07:48

Applied patch for GROOVY-746, from Dave Brosius - many thanks!

4 lines of code changed in:

  • groovy/groovy-core/src/main/groovy/xml: QName.java (+3 -3)
  • groovy/groovy-core/src/main/org/codehaus/groovy/syntax/parser: ASTHelper.java (+1 -1)
blackdrag 2005-02-23 23:17

more readable error message for users

2 lines of code changed in:

glaforge 2005-02-23 23:09

GROOVY-730: added firstRow() and rows() methods to Sql, thanks to Jean-Louis Berliet

301 lines of code changed in:

jez 2005-02-23 21:53

* New Feature for http://jira.codehaus.org/browse/GROOVY-744



rather than typing (the repetitive):



jez$ groovy Foo.groovy



It would be nice to follow the convention of the 'java' executable, allowing a command line more like:



jez$ groovy Foo



This assumes that groovy can "hunt" for the correct script file, given a list of known filename extensions



[more info in issue]

31 lines of code changed in:

phk 2005-02-23 20:59

Change the operator precedence of the power opertor **. For example, assert -x**2 == -(x**2)

16 lines of code changed in:

blackdrag 2005-02-23 19:45

support for BigDecimal and BigInteger in power

16 lines of code changed in:

phk 2005-02-23 18:06

Support power operations ** and **= (for example, x = 2**3; x **= 2 )

94 lines of code changed in:

blackdrag 2005-02-23 13:01

removed the ACC_SUPER flag because of verifyer problems and added line numbers

6 lines of code changed in:

jstrachan 2005-02-23 09:25

fixed test case to use less verbose syntax for default parameters on closures

2 lines of code changed in:

jez 2005-02-22 23:13

* reverted statement back to previous as it seems to exclude more tests than it fixes.

1 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+1 -1)
jez 2005-02-22 21:09

* revert break/continue/return with no expression, as assignmentExpression doesn't resolve to EMPTY

2 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+2 -4)
jstrachan 2005-02-22 20:18

added support for classic literals

26 lines of code changed in:

jez 2005-02-22 19:59

* reverted arrayTypeOrArgs change for now, as it causes some form of infinite loop

4 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+4 -4)
jez 2005-02-22 18:51

* removed some of the non-determinism

o singleDeclarationNoInit now follows the same pattern as declaration

o arrayOrTypeArgs is now implicitly optional

o clarified closureParameter alternations with syntactic predicates

o removed phk's addition of conditionalExpression to statement, due to conflict

o assignmentExpression is implicitly optional



* moved =~ closer to == in precedence

41 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+41 -30)
jstrachan 2005-02-22 18:39

Added an example of Brian's ambiguous statement along with the 3 different interpretations and testing that each generates the necessary errors or results

29 lines of code changed in:

jstrachan 2005-02-22 18:03

added Chris's ambiguity example, allowing the leading | to be omitted to save a little on the verbosity

1 lines of code changed in:

ckl 2005-02-22 16:18

add link widget

11 lines of code changed in:

ckl 2005-02-22 16:08

*** empty log message ***

177 lines of code changed in:

ckl 2005-02-22 16:07

upgrade to groovy-b9 and eclipse-3.1m5, set version 0.3

15 lines of code changed in:

  • groovy/modules/groovy-swt: README.txt (+15 -16)
phk 2005-02-22 13:56

One comment line has been changed.

1 lines of code changed in:

jstrachan 2005-02-22 10:55

added test case for bitwise operators and allowed support for the ~ operator on any string/gstring expression in New Groovy

179 lines of code changed in:

phk 2005-02-22 08:05

Add NegateLists.groovy for negating lists in Classic Groovy

78 lines of code changed in:

phk 2005-02-22 05:26

Add BitwiseOperationsTest.groovy to test Bitwise Operations in Classic Groovy

188 lines of code changed in:

jstrachan 2005-02-21 21:25

added support for &= |= ^ ^= ~ though we need test cases for their use to ensure they work correctly

16 lines of code changed in:

phk 2005-02-21 19:01

Changed again to support bitwise operations &, |, ^, ~, =&, =|, =^, <<=, >>=. and >>>=.

1 lines of code changed in:

jez 2005-02-21 18:58

* Added dependent classes for TCK test-new tests

0 lines of code changed in:

phk 2005-02-21 18:52

Support bitwise operations &, |, ^, ~, =&, =|, =^, <<=, >>=. and >>>=.

0 lines of code changed in:

phk 2005-02-21 18:38

Support bitwise operations &, |, ^, ~, =&, =|, =^, <<=, >>=. and >>>=.

0 lines of code changed in:

phk 2005-02-21 18:31

Support bitwise operations &, |, ^, ~, =&, =|, =^, <<=, >>=. and >>>=.

3 lines of code changed in:

phk 2005-02-21 18:19

Added for bitwise operations

134 lines of code changed in:

phk 2005-02-21 18:11

Support bitwise operations &, |, ^, ~, =&, =|, =^, <<=, >>=. and >>>=.

297 lines of code changed in:

jstrachan 2005-02-21 09:59

fixed a bunch of number operation tests and added support for bitwise or and bitwise and

76 lines of code changed in:

mcspanky 2005-02-20 16:31

Restores some accidently deleted tests

5 lines of code changed in:

mcspanky 2005-02-20 16:30

Tests that exception is properly propagatged through a closure

78 lines of code changed in:

mcspanky 2005-02-20 16:26

When expects one exception but gets another, now reports both.

8 lines of code changed in:

mcspanky 2005-02-20 16:25

Arguments of a single object now throw exceptions when inappropriate, e.g. vstrut(10) (should be vstrut(height:10))

6 lines of code changed in:

jstrachan 2005-02-19 14:07

added ability to update a range of a list, using a sublist expression

list[1, 2] = [4, 5, 6]

etc

39 lines of code changed in:

jstrachan 2005-02-19 12:42

more tests working in NG

9 lines of code changed in:

jstrachan 2005-02-19 12:27

rolled back previous patch :). Lets force double || on any non-trivial closure parameter list

so

{a, b| ... }

{a| ... }

{|int a| ...}

27 lines of code changed in:

jstrachan 2005-02-19 11:52

allow types to be specified for simple closures without the double bar

foo.each { int x | ... }

etc

3 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+3 -3)
  • groovy/jsr/ideas/parsers/antlr/test/org/codehaus/groovy/antlr: AllTests.java (-1)
jstrachan 2005-02-19 10:49

another test bites the dust

9 lines of code changed in:

jstrachan 2005-02-19 10:22

added back the code Jez removed, as we need it to parse constructors using the 'def' keyword, which look like method calls but are really constructors

20 lines of code changed in:

fraz 2005-02-19 01:33

Updated year in copyright statement

21 lines of code changed in:

fraz 2005-02-19 01:15

GROOVY-618: Made the icon's green background look a bit more pale

0 lines of code changed in:

jez 2005-02-18 20:53

* removed old constructor alternation

2 lines of code changed in:

  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+2 -7)
jstrachan 2005-02-18 16:39

added more constructor call tests just for MrG :)

15 lines of code changed in:

jstrachan 2005-02-18 16:23

better constructor fixes which now handles def, modifiers and just a bare constructor

14 lines of code changed in:

  • groovy/groovy-core/src/test-new/groovy: Constructor2Test.groovy (+1 -2)
  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: groovy.g (+13 -13)
  • groovy/jsr/ideas/parsers/antlr/test/org/codehaus/groovy/antlr: AllTests.java (-4)
jstrachan 2005-02-18 16:03

Changed Antlr to handle constructors for New Groovy

131 lines of code changed in:

jstrachan 2005-02-18 14:46

added operator support for <<= and >>=

needs wiring into runtime though

9 lines of code changed in:

  • groovy/groovy-core/src/main/org/codehaus/groovy/syntax: Types.java (+3)
  • groovy/jsr/ideas/parsers/antlr/src/org/codehaus/groovy/antlr: AntlrParserPlugin.java (+6)
jstrachan 2005-02-18 13:51

A bunch more tests are now working. Apart from the 3 main outstanding issues; it'd make life much easier to integrate the new parser into the core & use the regular test harness - as soon as beta-10 is out we can do that

36 lines of code changed in:

jstrachan 2005-02-18 13:09

Added Russell's test

0 lines of code changed in:

jstrachan 2005-02-18 11:57

Fixed bug in AST generation where an identifier was incorrectly coerced into a method call

8 lines of code changed in:

phk 2005-02-18 07:38