Project

General

Profile

Feature #17769 ยป num_coeff.patch

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

View differences:

parse.y
1181 1181
%type <node> args call_args opt_call_args
1182 1182
%type <node> paren_args opt_paren_args args_tail opt_args_tail block_args_tail opt_block_args_tail
1183 1183
%type <node> command_args aref_args opt_block_arg block_arg var_ref var_lhs
1184
%type <node> command_rhs arg_rhs
1184
%type <node> command_rhs arg_rhs multiplier
1185 1185
%type <node> command_asgn mrhs mrhs_arg superclass block_call block_command
1186 1186
%type <node> f_block_optarg f_block_opt
1187 1187
%type <node> f_arglist f_opt_paren_args f_paren_args f_args f_arg f_arg_item
......
2833 2833
		    }
2834 2834
		;
2835 2835

  
2836
multiplier	: var_ref
2837
		| '(' expr_value ')' { $$  = $2; }
2838
		;
2839

  
2836 2840
primary		: literal
2837 2841
		| strings
2838 2842
		| xstring
......
2843 2847
		| qsymbols
2844 2848
		| var_ref
2845 2849
		| backref
2850
		| numeric multiplier
2851
		    {
2852
			$$ = call_bin_op(p, $1, '*', $2, &@2, &@$);
2853
		    }
2846 2854
		| tFID
2847 2855
		    {
2848 2856
		    /*%%%*/