summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-17 16:36:09 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-21 11:08:24 -0800
commit1452b015182fe3b0960f85048ee42fd6dca209cf (patch)
treec0650378747906a87f888d9e78ec471be1320bf5 /parse/gram.y
parent7856c56148a004d82cd49a8da232ee88ce5377c1 (diff)
downloadmc-1452b015182fe3b0960f85048ee42fd6dca209cf.tar.gz
Fix missing ';' in grammar.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 0402b90..3bf08b6 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -257,7 +257,8 @@ decl : attrs Tvar decllist {
$3.nl[i]->decl.isgeneric = 1;
}
$$ = $3;
- }
+ }
+ ;
attrs : /* empty */ {$$.nstr = 0; $$.str = NULL;}
| Tattr attrs {
@@ -844,7 +845,7 @@ structelt: Tdot Tident Tasn expr optendlns {
$$ = $4;
mkidxinit($2->loc, mkname($2->loc, $2->id), $4);
}
- ;
+ ;
optendlns : /* none */
| optendlns Tendln
@@ -881,7 +882,6 @@ forstmt : Tfor optexprln optexprln optexprln block
$$ = mkloopstmt($1->loc, $2.nl[0], $4, $5, $6);
putdcl($$->loopstmt.scope, $2.nl[0]);
}
-
;
whilestmt