You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/09/29 06:13:55 UTC

[groovy] branch master updated (4ef990a -> e622a53)

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git.


    from 4ef990a  prepare for removal of antlr2 parser: move used utility method into separate helper class
     new fdb2ca9  prepare for removal of antlr2 parser: remove unused flag
     new e622a53  prepare for removal of antlr2 parser: remove old documentation

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../groovy/groovysh/InteractiveShellRunner.groovy      |  4 ----
 subprojects/parser-antlr4/README.adoc                  | 18 ------------------
 2 files changed, 22 deletions(-)


[groovy] 02/02: prepare for removal of antlr2 parser: remove old documentation

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit e622a53ab55d504bffe3abeb2b6837eee76cea97
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Sep 29 16:13:42 2019 +1000

    prepare for removal of antlr2 parser: remove old documentation
---
 subprojects/parser-antlr4/README.adoc | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/subprojects/parser-antlr4/README.adoc b/subprojects/parser-antlr4/README.adoc
index 4d08312..4534d97 100644
--- a/subprojects/parser-antlr4/README.adoc
+++ b/subprojects/parser-antlr4/README.adoc
@@ -36,24 +36,6 @@ The new parser(Parrot) can parse Groovy source code and construct the related AS
 * non-static inner class instantiation, e.g. `outer.new Inner()`
 * runtime groovydoc, i.e. groovydoc with `@Groovydoc`; groovydoc attached to AST node as metadata
 
-=== How to enable the new parser
-
-The new parser is enabled by default since Groovy 3.0.0
-
-* In the gradle build the property useAntlr4 has to be set to enable the build of the parser and the execution of all tests with it. Command line example:
-```
-./gradlew -PuseAntlr4=true bootstrapJar
-```
-* To enable the new parser automatically at runtime the system property groovy.antlr4 has to be set. Command line example:
-```
-export JAVA_OPTS="-Dgroovy.antlr4=true"
-groovy foo.groovy
-```
-* This system property also controls groovyc and has to be used in case it is used outside of this build, for example with:
-```
-groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4=true"]
-```
-
 === JVM system properties to control parsing
 
 * `groovy.antlr4.cache.threshold`: how frequently to clear DFA cache(default: 64). **Notice:** The more frequently the DFA cache is cleared, the poorer parsing performance will be(you can not set the value that is less than the default value). But the DFA cache has to be cleared to avoid OutOfMemoryError's occurring.


[groovy] 01/02: prepare for removal of antlr2 parser: remove unused flag

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit fdb2ca97b6c7343fa05096390eb74b78eeda45b0
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Sep 29 16:13:16 2019 +1000

    prepare for removal of antlr2 parser: remove unused flag
---
 .../groovy/org/apache/groovy/groovysh/InteractiveShellRunner.groovy   | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/InteractiveShellRunner.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/InteractiveShellRunner.groovy
index bc9fedd..13fbc59 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/InteractiveShellRunner.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/InteractiveShellRunner.groovy
@@ -29,8 +29,6 @@ import org.codehaus.groovy.tools.shell.IO
 import org.codehaus.groovy.tools.shell.util.Logger
 import org.codehaus.groovy.tools.shell.util.Preferences
 
-import static org.apache.groovy.util.SystemUtil.getSystemPropertySafe
-
 /**
  * Support for running a {@link Shell} interactively using the JLine library.
  */
@@ -65,8 +63,6 @@ class InteractiveShellRunner extends ShellRunner implements Runnable {
         this.completer = new CommandsMultiCompleter()
         reader.addCompleter(this.completer)
 
-        def antlr4 = Boolean.parseBoolean(getSystemPropertySafe("groovy.antlr4", "true"))
-
         def reflectionCompleter = new org.apache.groovy.groovysh.completion.antlr4.ReflectionCompleter(shell)
 
         def classnameCompleter = new org.apache.groovy.groovysh.completion.antlr4.CustomClassSyntaxCompleter(shell)