Project

General

Profile

Feature #17769 ยป num_coeff.patch

mrkn (Kenta Murata), 04/01/2021 03:25 AM

View differences:

parse.y
%type <node> args call_args opt_call_args
%type <node> paren_args opt_paren_args args_tail opt_args_tail block_args_tail opt_block_args_tail
%type <node> command_args aref_args opt_block_arg block_arg var_ref var_lhs
%type <node> command_rhs arg_rhs
%type <node> command_rhs arg_rhs multiplier
%type <node> command_asgn mrhs mrhs_arg superclass block_call block_command
%type <node> f_block_optarg f_block_opt
%type <node> f_arglist f_opt_paren_args f_paren_args f_args f_arg f_arg_item
......
}
;
multiplier : var_ref
| '(' expr_value ')' { $$ = $2; }
;
primary : literal
| strings
| xstring
......
| qsymbols
| var_ref
| backref
| numeric multiplier
{
$$ = call_bin_op(p, $1, '*', $2, &@2, &@$);
}
| tFID
{
/*%%%*/
    (1-1/1)