Skip to content

Commit

Permalink
Removed result printing in main source file implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 13, 2024
1 parent 775b317 commit 251b1b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Zhivo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 251b1b7

Please sign in to comment.