diff options
author | David Robillard <d@drobilla.net> | 2010-09-30 12:45:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-09-30 12:45:47 +0000 |
commit | 0faa00e9dfd221016ad26b5629617949fcce4676 (patch) | |
tree | 91ae7796712c83f8a3d9889b97b97ed8c630cfe7 /src/pprint.cpp | |
parent | c5e2f5dbb8922ba9bc5baa8e3194be89cb64f367 (diff) | |
download | resp-0faa00e9dfd221016ad26b5629617949fcce4676.tar.gz resp-0faa00e9dfd221016ad26b5629617949fcce4676.tar.bz2 resp-0faa00e9dfd221016ad26b5629617949fcce4676.zip |
Preliminary work on algebraic data types and run-time typing.
git-svn-id: http://svn.drobilla.net/resp/resp@270 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/pprint.cpp')
-rw-r--r-- | src/pprint.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp index 76796d7..28df1cc 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -51,10 +51,11 @@ operator<<(ostream& out, const AST* ast) const AType* type = ast->to<const AType*>(); if (type) { switch (type->kind) { - case AType::VAR: return out << "?" << type->id; - case AType::PRIM: return out << type->head(); - case AType::DOTS: return out << "..."; - case AType::EXPR: break; // will catch Tuple case below + case AType::VAR: return out << "?" << type->id; + case AType::NAME: return out << type->head(); + case AType::PRIM: return out << type->head(); + case AType::DOTS: return out << "..."; + case AType::EXPR: break; // will catch Tuple case below } } |