ref: effd3256cb0eff6a7c440548f446dc12132632b1
parent: 2fad146c7146c1d522c1d20ed80663cc4701ea9a
author: Ori Bernstein <[email protected]>
date: Mon Jun 18 11:18:58 EDT 2012
Fix grammar conflicts. Oops, a few typos gave us shift/reduce and reduce/reduce conflicts. So did empty matches. Fixed.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -384,7 +384,7 @@
| castexpr
;
-castexpr: landexpr Tcast Toparen type Tcparen
+castexpr: borexpr Tcast Toparen type Tcparen
{$$ = mkexpr($1->line, Ocast, $1, NULL);
$$->expr.type = $4;}
| borexpr
@@ -549,9 +549,7 @@
;
blockbody
- : /* empty */
- {$$ = mkblock(line, mkstab());}
- | stmt
+ : stmt
{$$ = mkblock(line, mkstab());
if ($1)
lappend(&$$->block.stmts, &$$->block.nstmts, $1);