diff --git a/core/src/main/codegen/PolyAlgParser.jj b/core/src/main/codegen/PolyAlgParser.jj index 3fbdb21340..dd4ce88d74 100644 --- a/core/src/main/codegen/PolyAlgParser.jj +++ b/core/src/main/codegen/PolyAlgParser.jj @@ -141,13 +141,13 @@ void OuterExpression() : InnerExpression() | Literal() - ) [OuterExpression()] // outer expressions cannot contain separators, as they could not always be differentiated from a ListArgument + )+ // outer expressions cannot contain separators, as they could not always be differentiated from a ListArgument } void InnerExpression() : // An expression which appears within parentheses {} { - ( + (( InnerExpression() | InnerExpression() @@ -155,7 +155,7 @@ void InnerExpression() : // An expression which appears within parentheses Literal() | // inner expressions can contain , since we know it cannot be an alias for an argument - ) ()* [InnerExpression()] // inner expressions can contain separators! + ) ()* )* // inner expressions can contain separators! } void Literal() :