On 30.09.2016 10:03, daniel_sun wrote:
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]".

you cannot add statement as an alternative to expression if a expression is also a statement. If any statement should be also an expression, then statement and expression have to be merged

     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.

probably, yes

bye Jochen

Reply via email to