Hi Sergei,
I tried to add the statement to expression as an alternative, the
antlr4 failed to generate sources becuase of the error "error(119):
GroovyParser.g4::: The following sets of rules are mutually left-recursive
[statement, expression, statementExpression]".
Currenty the expression is quite huge, which is a potential cause of
performance issue. so if we try our best to treat statement as expression in
the future, the performance will be impacted somehow.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/CONTRIBUTION-groovy-parser-tp5735184p5735699.html
Sent from the Groovy Dev mailing list archive at Nabble.com.