Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ASTPrinter.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rw-r--r--JSImpl/src/ASTPrinter.cpp5
diff --git a/JSImpl/src/ASTPrinter.cpp b/JSImpl/src/ASTPrinter.cpp
index d8f5ff8..4dc07f4 100644
--- a/JSImpl/src/ASTPrinter.cpp
+++ b/JSImpl/src/ASTPrinter.cpp
@@ -36,12 +36,13 @@ void Print(std::ostream& os, ASTPrinter &printer, const char* name, const IPLVec
void Print(std::ostream& os, ASTPrinter &printer, const char* name, const IPLVector<IPLString>& list, bool isLast)
{
- os << "\"" << name << "\" : [ \n";
+ os << "\"" << name << "\" : [";
for (auto i = 0; i < list.size(); ++i)
{
+ os << "\"" << list[i] << "\"";
if (i + 1 != list.size())
{
- os << list[i] << ",";
+ os << ",";
}
}
os << "]";