Skip to content

Commit

Permalink
vacillating back to () for @operator
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 1, 2023
1 parent b7f08a1 commit c2554d5
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 232 deletions.
4 changes: 2 additions & 2 deletions src/core/chuck.y
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ function_definition
{ $$ = new_op_overload( $1, $2, $3, $5, $7, $9, TRUE, FALSE, @1.first_line, @1.first_column, @5.first_column ); }
| function_decl static_decl type_decl2 AT_OP LPAREN arg_list RPAREN overloadable_operator code_segment
{ $$ = new_op_overload( $1, $2, $3, $8, $6, $9, TRUE, TRUE, @1.first_line, @1.first_column, @8.first_column ); }
| function_decl static_decl type_decl2 AT_OP LT overloadable_operator GT LPAREN arg_list RPAREN code_segment
| function_decl static_decl type_decl2 AT_OP LPAREN overloadable_operator RPAREN LPAREN arg_list RPAREN code_segment
{ $$ = new_op_overload( $1, $2, $3, $6, $9, $11, TRUE, FALSE, @1.first_line, @1.first_column, @5.first_column ); }
| function_decl static_decl type_decl2 AT_OP LPAREN arg_list RPAREN LT overloadable_operator GT code_segment
| function_decl static_decl type_decl2 AT_OP LPAREN arg_list RPAREN LPAREN overloadable_operator RPAREN code_segment
{ $$ = new_op_overload( $1, $2, $3, $9, $6, $11, TRUE, TRUE, @1.first_line, @1.first_column, @8.first_column ); }
;

Expand Down
Loading

0 comments on commit c2554d5

Please sign in to comment.