summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-15 00:36:08 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-15 00:36:42 -0700
commit357f87c1117edfdf77411781ebfae221a406c454 (patch)
tree5e70ba66596b8ee13ceb46e2c9268fe12101f17a /parse/gram.y
parent15b5fb5c0f9fee25b01a245229efcef21c103bdc (diff)
downloadmc-357f87c1117edfdf77411781ebfae221a406c454.tar.gz
Type binding refactoring now compiles.
Still a bit sloppy on a few things, needs some dedup work, but it's working.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index f889aa1..5ebfebb 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -477,7 +477,9 @@ typarams: generictype {
$$.types = NULL; $$.ntypes = 0;
lappend(&$$.types, &$$.ntypes, $1);
}
- | typarams Tcomma generictype {lappend(&$$.types, &$$.ntypes, $3);}
+ | typarams Tcomma generictype {
+ lappend(&$$.types, &$$.ntypes, $3);
+ }
;
type : structdef