summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-02-01 23:27:45 -0800
committerOri Bernstein <ori@eigenstate.org>2017-02-01 23:27:45 -0800
commitc82dc24c8dfe8722d53abd079801f2536c8bbb90 (patch)
tree09ba875f9f6c5ff10074ff79cdf01ed2bafd6de4 /parse/gram.y
parent9875caeeeda455522be769084bc6f490e59018c4 (diff)
downloadmc-c82dc24c8dfe8722d53abd079801f2536c8bbb90.tar.gz
Revert mistaken cleanups.
These cleanups don't work. Oops.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse/gram.y b/parse/gram.y
index fac1f02..10f2843 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -582,7 +582,7 @@ unionelt /* nb: the ucon union type gets filled in when we have context */
| Tendln {$$ = NULL;}
;
-goto : Tgoto Tident Tendln {
+goto : Tgoto Tident {
Node *lbl;
lbl = mklbl($2->loc, "");
@@ -899,11 +899,11 @@ stmt : goto
| /* empty */ {$$ = NULL;}
;
-break : Tbreak Tendln
+break : Tbreak
{$$ = mkexpr($1->loc, Obreak, NULL);}
;
-continue : Tcontinue Tendln
+continue : Tcontinue
{$$ = mkexpr($1->loc, Ocontinue, NULL);}
;
@@ -1004,7 +1004,7 @@ blkbody : decl {
}
;
-label : Tcolon Tident Tendln {
+label : Tcolon Tident {
char buf[512];
genlblstr(buf, sizeof buf, $2->id);
$$ = mklbl($2->loc, buf);