1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (BEGIN): now local_push are local_pop are necessary in

ripper.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-11-04 22:47:33 +00:00
parent d778abf534
commit 746eb4a45b
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 5 07:47:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (BEGIN): now local_push are local_pop are necessary in
ripper.
Wed Nov 4 21:39:10 2009 NARUSE, Yui <naruse@ruby-lang.org> Wed Nov 4 21:39:10 2009 NARUSE, Yui <naruse@ruby-lang.org>
* .document: add some README files to default rdoc's of trunk. * .document: add some README files to default rdoc's of trunk.

View file

@ -988,10 +988,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
if (in_def || in_single) { if (in_def || in_single) {
yyerror("BEGIN in method"); yyerror("BEGIN in method");
} }
/*%%%*/
/* local_push(0); */ /* local_push(0); */
/*%
%*/
} }
'{' compstmt '}' '{' compstmt '}'
{ {
@ -999,11 +996,11 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
ruby_eval_tree_begin = block_append(ruby_eval_tree_begin, ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
$4); $4);
/* NEW_PREEXE($4)); */ /* NEW_PREEXE($4)); */
/* local_pop(); */
$$ = NEW_BEGIN(0); $$ = NEW_BEGIN(0);
/*% /*%
$$ = dispatch1(BEGIN, $4); $$ = dispatch1(BEGIN, $4);
%*/ %*/
/* local_pop(); */
} }
| keyword_END '{' compstmt '}' | keyword_END '{' compstmt '}'
{ {