summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-02-01 11:14:46 -0500
committerOri Bernstein <ori@eigenstate.org>2014-02-01 11:14:46 -0500
commit196258441277732b8ab24471404b7fd21a81987a (patch)
tree39540da097170c881b0dc3a79c1dba8ece6c980a /parse/dump.c
parent3e51d386096b13c255d6aec4406f85548e9e7d63 (diff)
downloadmc-196258441277732b8ab24471404b7fd21a81987a.tar.gz
Stub in more code for trait/impl.
We now make Impl nodes, and then die when we try to use them.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse/dump.c b/parse/dump.c
index ddb50fa..938c3ce 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -227,7 +227,10 @@ static void outnode(Node *n, FILE *fd, int depth)
fprintf(fd, ")\n");
break;
case Ntrait:
- fprintf(fd, "Trait definition");
+ die("Trait definition");
+ break;
+ case Nimpl:
+ die("Impl definition");
break;
case Nnone:
fprintf(stderr, "Nnone not a real node type!");