From dbca249757a98d6d56e23db43baa93ad30a91709 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 30 Aug 2026 21:07:48 +0200 Subject: Use arrow -> for return types --- boot/parser.yy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'boot/parser.yy') 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::make_position(@$), $2, $4); } procedure_declaration: -- cgit v1.2.3