From 251b1b74fe8a1c2dfcdee23fc43b12f24b40243a Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 14 Sep 2024 07:26:24 +0800 Subject: [PATCH] Removed result printing in main source file implementation. --- src/Zhivo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Zhivo.cpp b/src/Zhivo.cpp index ac1b2e6..7621d9a 100644 --- a/src/Zhivo.cpp +++ b/src/Zhivo.cpp @@ -24,16 +24,13 @@ auto interpreter() -> int { SymbolTable symbols; - DynamicObject result; try { Parser parser = Parser::fromFile("test.zhv"); parser.parse(); for(const auto& statement : parser.getGlobalStatements()) - result = statement->visit(symbols); - - std::cout << result.toString() << std::endl; + statement->visit(symbols); return 0; } catch(const std::exception& exc) {