Skip to content

Commit

Permalink
No need to specify tags anymore
Browse files Browse the repository at this point in the history
In the past, these codes were used by both parser and ripper.
On ripper, the type of LHS is `<val>` then type cast was needed.
However curretnly these are only used by parser then no need to
cast.
  • Loading branch information
yui-knk committed May 15, 2024
1 parent e3e1e53 commit 700da0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -3613,14 +3613,14 @@ command : fcall command_args %prec tLOWEST
{
NODE *args = 0;
args = ret_args(p, $2);
$<node>$ = add_block_exit(p, NEW_BREAK(args, &@$));
$$ = add_block_exit(p, NEW_BREAK(args, &@$));
/*% ripper: break!($:2) %*/
}
| keyword_next call_args
{
NODE *args = 0;
args = ret_args(p, $2);
$<node>$ = add_block_exit(p, NEW_NEXT(args, &@$));
$$ = add_block_exit(p, NEW_NEXT(args, &@$));
/*% ripper: next!($:2) %*/
}
;
Expand Down Expand Up @@ -4790,17 +4790,17 @@ primary : literal
}
| keyword_break
{
$<node>$ = add_block_exit(p, NEW_BREAK(0, &@$));
$$ = add_block_exit(p, NEW_BREAK(0, &@$));
/*% ripper: break!(args_new!) %*/
}
| keyword_next
{
$<node>$ = add_block_exit(p, NEW_NEXT(0, &@$));
$$ = add_block_exit(p, NEW_NEXT(0, &@$));
/*% ripper: next!(args_new!) %*/
}
| keyword_redo
{
$<node>$ = add_block_exit(p, NEW_REDO(&@$));
$$ = add_block_exit(p, NEW_REDO(&@$));
/*% ripper: redo! %*/
}
| keyword_retry
Expand Down

0 comments on commit 700da0c

Please sign in to comment.