summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-05 22:34:12 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-05 22:34:12 -0700
commitb5cf804cbeb33a60bea00307c24aa361ea821530 (patch)
tree83a8d6f96e0fa36bdd7e1d8048768272d9e23297 /parse/gram.y
parent6e064ade4c10bce0127ebebf6cd1dc2bb24213f5 (diff)
downloadmc-b5cf804cbeb33a60bea00307c24aa361ea821530.tar.gz
Add some discipline to type bindings.
We actually now do it in terms of scopes. It's still hacky, but...
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse/gram.y b/parse/gram.y
index bcf9713..f889aa1 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -753,8 +753,9 @@ atomicexpr
$$ = mkexpr($1->loc, Ocast, $2, NULL);
$$->expr.type = $4;
}
- | Tsizeof Toparen type Tcparen
- {$$ = mkexpr($1->loc, Osize, mkpseudodecl($1->loc, $3), NULL);}
+ | Tsizeof Toparen type Tcparen {
+ $$ = mkexpr($1->loc, Osize, mkpseudodecl($1->loc, $3), NULL);
+ }
| Timpl Toparen name Tcomma type Tcparen {
$$ = mkexpr($1->loc, Ovar, $3, NULL);
$$->expr.param = $5;