Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
1 files changed, 5 insertions, 1 deletions
-rw-r--r--JSImpl/src/main.cpp6
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp
index 6ed1122..06421a7 100644
--- a/JSImpl/src/main.cpp
+++ b/JSImpl/src/main.cpp
@@ -38,7 +38,11 @@ class InterpreterPrinter : public ASTInterpreter::Printer
public:
virtual void PrintVariable(const char* name, double value) override
{
- std::cout << name << ": " << value << std::endl;
+ std::cout << name << ": number : " << value << std::endl;
+ }
+ virtual void PrintVariable(const char* name, const IPLString& value) override
+ {
+ std::cout << name << ": string : " << value << std::endl;
}
};