Hide Interpreter in .cpp (#1036)

This improves encapsulation, and makes Interpreter lifetimes clearer (and shorter).

Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
Geoff RomerandJon Meow authored and GitHub committed 2022-01-26 09:57:55 -08:00
1 parent 6a4901a995
commit 1723b4e0b2
7 files changed
+158 -140

No files matched your search

@@ -41,7 +41,7 @@ void ExecProgram(Nonnull<Arena*> arena, AST ast, bool trace) {
}
llvm::outs() << "********** starting execution **********\n";
}
int result = Interpreter(arena, trace).InterpProgram(ast);
int result = InterpProgram(ast, arena, trace);
llvm::outs() << "result: " << result << "\n";
}