diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-30 21:07:48 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-30 21:07:48 +0200 |
| commit | dbca249757a98d6d56e23db43baa93ad30a91709 (patch) | |
| tree | eaf664d63c7752aabad7994f62e92ae6492e655d /boot/parser.yy | |
| parent | 491e62664394a8689a3f8904fbe8dbc3dea05524 (diff) | |
| download | elna-dbca249757a98d6d56e23db43baa93ad30a91709.tar.gz | |
Use arrow -> for return types
Diffstat (limited to 'boot/parser.yy')
| -rw-r--r-- | boot/parser.yy | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boot/parser.yy b/boot/parser.yy index 669115b..b53a94c 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -90,7 +90,7 @@ along with GCC; see the file COPYING3. If not see %token LEFT_PAREN "(" RIGHT_PAREN ")" LEFT_SQUARE "[" RIGHT_SQUARE "]" %token LEFT_BRACE "{" RIGHT_BRACE "}" %token ASSIGNMENT ":=" - EXCLAMATION "!" + EXCLAMATION "!" ARROW "->" AT "@" HAT "^" COLON ":" SEMICOLON ";" DOT "." COMMA "," %token NOT "~" @@ -188,8 +188,8 @@ identifier_definitions: | identifier_definition { $$.emplace_back(std::move(*$1)); } return_declaration: %empty {} - | ":" "!" { $$ = boot::procedure_type_expression::return_t(std::monostate{}); } - | ":" type_expression { $$ = boot::procedure_type_expression::return_t($2); } + | "->" "!" { $$ = boot::procedure_type_expression::return_t(std::monostate{}); } + | "->" type_expression { $$ = boot::procedure_type_expression::return_t($2); } procedure_heading: "(" optional_fields ")" return_declaration { $$ = std::make_unique<boot::procedure_type_expression>(boot::make_position(@$), $2, $4); } procedure_declaration: |
