Skip to content

Commit

Permalink
Allow for empty inner expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-weber committed Apr 3, 2024
1 parent 461559d commit 3888e85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/codegen/PolyAlgParser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,21 @@ void OuterExpression() :
<LCURL> InnerExpression() <RCURL>
|
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
{}
{
(
((
<LPAR> InnerExpression() <RPAR>
|
<LCURL> InnerExpression() <RCURL>
|
Literal()
|
<AS> // inner expressions can contain <AS>, since we know it cannot be an alias for an argument
) (<SEP>)* [InnerExpression()] // inner expressions can contain separators!
) (<SEP>)* )* // inner expressions can contain separators!
}

void Literal() :
Expand Down

0 comments on commit 3888e85

Please sign in to comment.