Skip to content

Commit

Permalink
refactor: remove lambda parameter list
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Sep 21, 2023
1 parent af13e28 commit 1d73d7f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/language/grammar/safe-ds.langium
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,6 @@ SdsParameterList returns SdsParameterList:
')'
;

interface SdsLambdaParameterList extends SdsExpression, SdsParameterList {}

SdsLambdaParameterList returns SdsParameterList:
{SdsLambdaParameterList}
'('
(
parameters+=SdsParameter
(',' parameters+=SdsParameter)*
','?
)?
')'
;

interface SdsParameter extends SdsLocalVariable {
variadic: boolean
^type?: SdsType
Expand Down Expand Up @@ -522,7 +509,7 @@ interface SdsExpressionLambda extends SdsLambda {
}

SdsLambda returns SdsExpression:
SdsLambdaParameterList
SdsParameterList
(
{SdsBlockLambda.parameterList=current} body=SdsBlockLambdaBlock
| {SdsExpressionLambda.parameterList=current} '->' result=SdsExpression
Expand Down

0 comments on commit 1d73d7f

Please sign in to comment.