* parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
45c7ead6ae
commit
b0d8301744
@ -1,3 +1,7 @@
|
|||||||
|
Sat Feb 24 17:45:48 2007 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
|
||||||
|
|
||||||
Sat Feb 24 16:52:55 2007 Minero Aoki <aamine@loveruby.net>
|
Sat Feb 24 16:52:55 2007 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* bootstraptest/runner.rb: fix syntax error.
|
* bootstraptest/runner.rb: fix syntax error.
|
||||||
|
14
parse.y
14
parse.y
@ -4153,11 +4153,19 @@ f_norm_arg : tCONSTANT
|
|||||||
|
|
||||||
f_arg : f_norm_arg
|
f_arg : f_norm_arg
|
||||||
{
|
{
|
||||||
|
/*%%%*/
|
||||||
$$ = 1;
|
$$ = 1;
|
||||||
|
/*%
|
||||||
|
$$ = rb_ary_new();
|
||||||
|
%*/
|
||||||
}
|
}
|
||||||
| f_arg ',' f_norm_arg
|
| f_arg ',' f_norm_arg
|
||||||
{
|
{
|
||||||
|
/*%%%*/
|
||||||
$$ = $1 + 1;
|
$$ = $1 + 1;
|
||||||
|
/*%
|
||||||
|
rb_ary_push($$, $3);
|
||||||
|
%*/
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -4273,7 +4281,11 @@ opt_f_block_arg : ',' f_block_arg
|
|||||||
}
|
}
|
||||||
| none
|
| none
|
||||||
{
|
{
|
||||||
$$ = 0 ;
|
/*%%%*/
|
||||||
|
$$ = 0;
|
||||||
|
/*%
|
||||||
|
$$ = Qundef;
|
||||||
|
%*/
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user