aboutsummaryrefslogtreecommitdiffstats
path: root/write.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'write.cpp')
-rw-r--r--write.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/write.cpp b/write.cpp
index 984e236..95079ad 100644
--- a/write.cpp
+++ b/write.cpp
@@ -23,11 +23,11 @@ operator<<(ostream& out, const AST* ast)
const ALiteral<float>* flit = ast->to<const ALiteral<float>*>();
if (flit)
return out << showpoint << flit->val;
-
+
const ALiteral<int32_t>* ilit = ast->to<const ALiteral<int32_t>*>();
if (ilit)
return out << ilit->val;
-
+
const ALiteral<bool>* blit = ast->to<const ALiteral<bool>*>();
if (blit)
return out << (blit->val ? "#t" : "#f");
@@ -35,7 +35,7 @@ operator<<(ostream& out, const AST* ast)
const ASymbol* sym = ast->to<const ASymbol*>();
if (sym)
return out << sym->cppstr;
-
+
const AType* type = ast->to<const AType*>();
if (type) {
switch (type->kind) {
@@ -44,7 +44,7 @@ operator<<(ostream& out, const AST* ast)
case AType::EXPR: break; // will catch Tuple case below
}
}
-
+
const ATuple* tup = ast->to<const ATuple*>();
if (tup) {
out << "(";
@@ -52,7 +52,7 @@ operator<<(ostream& out, const AST* ast)
out << tup->at(i) << ((i != tup->size() - 1) ? " " : "");
return out << ")";
}
-
+
return out << "?";
}