summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-06-08 00:55:49 -0400
committerOri Bernstein <ori@eigenstate.org>2013-06-08 00:55:49 -0400
commitb4e37364481ba805a39e8699ce9ae0e78b85d6c0 (patch)
treec39681539ec14df4f66214a479655eacd0c98a77 /parse/dump.c
parent3c9502102b2b01d6b32dad5f4f23f6f1fe736721 (diff)
downloadmc-b4e37364481ba805a39e8699ce9ae0e78b85d6c0.tar.gz
Add indexed initializer tree support.
Needed to support indexed initialization of sequence literals.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 56536b5..a4861ec 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -222,6 +222,11 @@ static void outnode(Node *n, FILE *fd, int depth)
fprintf(stderr, "Nnone not a real node type!");
fprintf(fd, "Nnone\n");
break;
+ case Nidxinit:
+ fprintf(fd, "\n");
+ outnode(n->idxinit.idx, fd, depth + 1);
+ outnode(n->idxinit.init, fd, depth + 1);
+ break;
}
}