summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-21 04:22:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-21 04:22:54 +0000
commit5799c2bfbf7dbf34bc21b45152be717069d3a592 (patch)
treecda1cb5c64756a7c3530c1ab33e37c168934c146 /parse.y
parenta5bda2baec20bb52b1e30e67e783bc4f0ff00c33 (diff)
downloadruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.tar.gz
ruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.tar.xz
ruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.zip
* bignum.c (rb_big2str): t should be protected from GC.
* process.c (rb_proc_times): need not to check retrun value from times(2). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y32
1 files changed, 16 insertions, 16 deletions
diff --git a/parse.y b/parse.y
index 302156588..7e8d8b42a 100644
--- a/parse.y
+++ b/parse.y
@@ -426,6 +426,22 @@ expr : kRETURN ret_args
yyerror("return appeared outside of method");
$$ = NEW_RETURN($2);
}
+ | kBREAK
+ {
+ $$ = NEW_BREAK();
+ }
+ | kNEXT
+ {
+ $$ = NEW_NEXT();
+ }
+ | kREDO
+ {
+ $$ = NEW_REDO();
+ }
+ | kRETRY
+ {
+ $$ = NEW_RETRY();
+ }
| command_call
| expr kAND expr
{
@@ -1343,22 +1359,6 @@ primary : literal
local_pop();
in_single--;
}
- | kBREAK
- {
- $$ = NEW_BREAK();
- }
- | kNEXT
- {
- $$ = NEW_NEXT();
- }
- | kREDO
- {
- $$ = NEW_REDO();
- }
- | kRETRY
- {
- $$ = NEW_RETRY();
- }
then : term
| kTHEN