GROOVY-601: Updated UnicodeEscapingReader to use an ANTLR's CharScanner instead of referring to a specific lexer implementation
9 lines of code changed in:
* added an identity method to all Java Objects that allows you to
pass the Object to a closure.
For example:
foo[i].bar().film.identity { f ->
f.name = "Lavender Hill Mob"
f.year = 1951
f.ratio = [1.37,1]
}
This is almost like the future 'with' keyword, but with existing qualification
by the injected variable name (in this case 'f')
I'm not certain about the method name 'identity' though, I would use 'with'
but with the prospect of it becoming a keyword...
Open to better suggestions for a name for this method...
jez.
63 lines of code changed in:
Fix the errata of groovy.g while fixing GROOVY-826 (default method pointer bug).
3 lines of code changed in:
Fix GROOVY-826 (default method pointer bug).
For example,
def sayHello() { println "hello" }
def h = &sayHello // Now, this works.
h()
76 lines of code changed in:
GROOVY-601: Added patch to be applied to the groovy.g master grammar in order to auto-generate the corresponding tree parser
1192 lines of code changed in:
Fix a test method: testDownStep()
1 lines of code changed in:
Enhance threee methods: upto, downto and step.
Prevent infinite loops with generating exceptions.
Now, step allows the negative stepNumber (i.e., fix GROOVY-792).
For example,
(6*Math.PI).step(2*Math.PI, -Math.PI/2) { println it }
245 lines of code changed in:
temporary fix for "use" until chooseSpecficParams is fixed
3 lines of code changed in:
Add support for building a Linux exectuable.
111 lines of code changed in:
* Added example usages of Lucene the search engine API in Groovy
based on examples in the wonderful 'Lucene in Action' book
by Erik Hatcher and Otis Gospodnetic ( http://www.lucenebook.com )
requires a lucene-1.x.x.jar from http://lucene.apache.org
From: Erik Hatcher
We'd be honored to have Groovy'fied Lucene in Action examples out
there! The PyLucene project did the same thing with our code,
actually. So its no problem at all.
Thanks
Erik
99 lines of code changed in:
added linksource to javadoc so we can navigate from javadoc to source code
1 lines of code changed in:
* Added fix for infinite recursion issue during tree walker generation
35 lines of code changed in:
Added antlr generated tree walker for the antlr generated AST
Note: this doesn't yet compile fully
2793 lines of code changed in:
additional close to be sure the streams are closed
5 lines of code changed in:
Change the demo script for testing methods: upto, downto, and step.
0 lines of code changed in:
Add a method: downto
Enhance two methods: upto and step
229 lines of code changed in:
added a new helper method
11 lines of code changed in:
upgraded Gram to the latest JSR
2 lines of code changed in:
Made AsmClassGenerator understand String asBool the same that Invoker has.
4 lines of code changed in:
* added src attribute to specify a groovy source file to the groovy ant task,
this is used if no source is found within the groovy tags
e.g.
<groovy src="MySpecialTask.groovy"/>
5 lines of code changed in:
* Moved groovy logo to a metapost file for easier inclusion in PDFs
1675 lines of code changed in:
GROOVY-601: Updated list of ANTLR-generated artifacts to be ignored by CVS
1 lines of code changed in:
GROOVY-601: Added list of ANTLR-generated artifacts to be ignored by CVS
7 lines of code changed in:
GROOVY-601: finally managed to tweak GroovyPsiBuilder to build a trivial PSI tree made of script-header comment, new lines and other whitespace characters!
457 lines of code changed in:
* added default bindings to the script being executed inside <groovy/> tag
- ant : an instance of groovy.util.AntBuilder that knows about the current ant project
- project : the current ant project
- properties : a Map of ant properties, e.g. properties['java.vendor']
- target : the owning target that invoked this groovy script
- task : the wrapping task, can access anything needed in org.apache.tools.ant.Task, e.g. task.log("Problem...")
e.g.
<groovy>
ant.echo("hello world")
ant.jar(destfile:"foo.jar", basedir="classes")
</groovy>
7 lines of code changed in:
removed a java1.5 method
2 lines of code changed in:
added missing def
1 lines of code changed in:
added a missing def
1 lines of code changed in:
handles inner classes now
102 lines of code changed in:
added some missing defs
2 lines of code changed in:
corected typo
2 lines of code changed in:
added an error reporting method which does not throw an exception
13 lines of code changed in:
little modifications for the scope visitor
4 lines of code changed in:
now checks class nodes of superclasses
65 lines of code changed in:
some formatting
32 lines of code changed in:
some reformatting
2 lines of code changed in:
helper for the asm:verify task
184 lines of code changed in:
removed comment
1 lines of code changed in:
visitor support for catch statements
1 lines of code changed in:
a first try to implement some simple scope checks and some modified tests
954 lines of code changed in:
added old test case
58 lines of code changed in:
More bug fixes and grammar cleanups.
Full notes are here: http://docs.codehaus.org/display/GroovyJSR/2005/04/13/grammar+notes
No regressions on the 4 UberTestCase suites.
226 lines of code changed in:
Added asBool conversion for Strings: convert empty strings to false, and non-empty strings to true.
54 lines of code changed in:
attempted fix for GROOVY-670 to try to use a given classloader, if it can load groovy classes - otherwise default to the local loader
13 lines of code changed in:
refactor to allow the AST to lazily generate a variable scope
95 lines of code changed in:
GROOVY-601: still finding out the correct way to use of PsiBuilder in GroovyPsiRecognizer (work in progress)
67 lines of code changed in:
* Added a <groovy> ant task
- this will execute supplied groovy code inlined within the build.xml
- this is intended to also be allowed to accept <groovy src="Foo.groovy"/> [not implemented yet]
- also intend to allow filesets to be traversed, applying the groovy script to each file (groovy -p -i -e style)
e.g. of current implementation...
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="my.classpath"/>
<groovy>
println "hello world"
</groovy>
Enjoy
jez.
407 lines of code changed in:
applied bug fixes that Bill Pugh kindly found for us via the excellent tool, FindBugs.sf.net
78 lines of code changed in:
Moved the classic parser out into a separate module (groovy/modules/classic) to avoid distributing code with folks using the JSR. Moved the old classic test cases over too to avoid us getting mixed up.
39241 lines of code changed in: