summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-06-05 09:02:47 -0400
committerOri Bernstein <ori@eigenstate.org>2013-06-07 20:51:29 -0400
commit6586d3b6c2dad1ed0e1d3c798a42660f4c17d456 (patch)
tree8bbbffbe145effda006dee247a5dfbe52807a054 /parse/dump.c
parent954ff1977d4345d53a0e1996c7c3b39c51a2d470 (diff)
downloadmc-6586d3b6c2dad1ed0e1d3c798a42660f4c17d456.tar.gz
Parses struct elements, but doesn't compile them.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 9f72761..56536b5 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -190,8 +190,13 @@ static void outnode(Node *n, FILE *fd, int depth)
fprintf(fd, " Lfunc\n");
outnode(n->lit.fnval, fd, depth+1);
break;
- case Lseq:
- fprintf(fd, " Lseq\n");
+ case Larray:
+ fprintf(fd, " Larray\n");
+ for (i = 0; i < n->lit.nelt; i++)
+ outnode(n->lit.seqval[i], fd, depth+1);
+ break;
+ case Lstruct:
+ fprintf(fd, " Lstruct\n");
for (i = 0; i < n->lit.nelt; i++)
outnode(n->lit.seqval[i], fd, depth+1);
break;