-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement error recovery for antlr4-based Parrot Parser #1011
Comments
Now that Groovy 4 is GA and has dropped antlr2 support this needs to be completed sooner rather than later. |
@Spitfire1900 This project still provides the antlr2 parser for Groovy 4. You may also use the antlr4 parser, it's just not enabled by default. If you have antlr4 knowledge that would help move this ticket along, I'm ready and available to review design proposals. |
My users also like to use new language features like Java-style Lambda syntax, but without error recovery, the use of the editor is very problematic for my users. |
For those whom are on Groovy 3 and want to disable the parrot parser in builds this is how you can implement it in Gradle.
tasks.withType(GroovyCompile) {
groovyOptions.configurationScript = file("$projectDir/antlr2.groovy")
}
import static org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder.*
import static org.codehaus.groovy.control.ParserPluginFactory.antlr2
import org.codehaus.groovy.control.CompilerConfiguration
withConfig (configuration) {
(configuration as CompilerConfiguration).pluginFactory = antlr2()
} |
No description provided.
The text was updated successfully, but these errors were encountered: