diff options
author | David Robillard <d@drobilla.net> | 2009-03-07 05:49:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-07 05:49:13 +0000 |
commit | 835fa4439303938731517dc56f185f012896e6f4 (patch) | |
tree | c26c2e535a2d4a7ab8a3c6c8ae3222cc3486e012 /write.cpp | |
parent | 5faf51234f0279c057c58a6c26cf35f4266bedaf (diff) | |
download | resp-835fa4439303938731517dc56f185f012896e6f4.tar.gz resp-835fa4439303938731517dc56f185f012896e6f4.tar.bz2 resp-835fa4439303938731517dc56f185f012896e6f4.zip |
Shorter and more consistent names (AST -> A).
git-svn-id: http://svn.drobilla.net/resp/tuplr@78 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'write.cpp')
-rw-r--r-- | write.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -20,19 +20,19 @@ ostream& operator<<(ostream& out, const AST* ast) { - const ASTLiteral<float>* flit = dynamic_cast<const ASTLiteral<float>*>(ast); + const ALiteral<float>* flit = dynamic_cast<const ALiteral<float>*>(ast); if (flit) return out << showpoint << flit->val; - const ASTLiteral<int32_t>* ilit = dynamic_cast<const ASTLiteral<int32_t>*>(ast); + const ALiteral<int32_t>* ilit = dynamic_cast<const ALiteral<int32_t>*>(ast); if (ilit) return out << ilit->val; - const ASTLiteral<bool>* blit = dynamic_cast<const ASTLiteral<bool>*>(ast); + const ALiteral<bool>* blit = dynamic_cast<const ALiteral<bool>*>(ast); if (blit) return out << (blit->val ? "#t" : "#f"); - const ASTSymbol* sym = dynamic_cast<const ASTSymbol*>(ast); + const ASymbol* sym = dynamic_cast<const ASymbol*>(ast); if (sym) return out << sym->cppstr; @@ -45,7 +45,7 @@ operator<<(ostream& out, const AST* ast) } } - const ASTTuple* tup = dynamic_cast<const ASTTuple*>(ast); + const ATuple* tup = dynamic_cast<const ATuple*>(ast); if (tup) { out << "("; for (size_t i = 0; i != tup->size(); ++i) |