diff options
Diffstat (limited to 'src/pprint.cpp')
-rw-r--r-- | src/pprint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp index cb507b1..ddbd403 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -36,6 +36,10 @@ operator<<(ostream& out, const AST* ast) if (blit) return out << (blit->val ? "#t" : "#f"); + const AString* str = ast->to<const AString*>(); + if (str) + return out << *str; + const ASymbol* sym = ast->to<const ASymbol*>(); if (sym) return out << sym->cppstr; |