From 3888e85fb59597fa61de9f334f79bbbd1217b840 Mon Sep 17 00:00:00 2001 From: Tobias Weber Date: Wed, 3 Apr 2024 18:22:42 +0200 Subject: [PATCH] Allow for empty inner expressions --- core/src/main/codegen/PolyAlgParser.jj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() :