* 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:
aamine 2007-02-24 08:45:58 +00:00
parent 45c7ead6ae
commit b0d8301744
2 changed files with 17 additions and 1 deletions

View File

@ -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>
* bootstraptest/runner.rb: fix syntax error.

12
parse.y
View File

@ -4153,11 +4153,19 @@ f_norm_arg : tCONSTANT
f_arg : f_norm_arg
{
/*%%%*/
$$ = 1;
/*%
$$ = rb_ary_new();
%*/
}
| f_arg ',' f_norm_arg
{
/*%%%*/
$$ = $1 + 1;
/*%
rb_ary_push($$, $3);
%*/
}
;
@ -4273,7 +4281,11 @@ opt_f_block_arg : ',' f_block_arg
}
| none
{
/*%%%*/
$$ = 0;
/*%
$$ = Qundef;
%*/
}
;