Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Parser/Parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ TypeDeclaration

RoutineDeclaration
: ROUTINE IDENTIFIER LEFT_BRACKET Parameters RIGHT_BRACKET COLON Type IS Body END
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclarationWithType, $2, $4, $7, $9); }
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclarationWithTypeAndParams, $2, $4, $7, $9); }

| ROUTINE IDENTIFIER LEFT_BRACKET RIGHT_BRACKET COLON Type IS Body END
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclarationWithType, $2, $6, $8); }

| ROUTINE IDENTIFIER LEFT_BRACKET Parameters RIGHT_BRACKET IS Body END
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclaration, $2, $4, $7); }
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclarationWithParams, $2, $4, $7); }

| ROUTINE IDENTIFIER LEFT_BRACKET RIGHT_BRACKET IS Body END
{ $$ = Node.MakeComplexNode(NodeTag.RoutineDeclaration, $2, $6); }
Expand Down
Loading