integer constant program working up to ir

This commit is contained in:
water
2020-09-06 12:45:31 -04:00
parent 2b67b1078f
commit 8bf0bd86d3
20 changed files with 1142 additions and 34 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "goalc/compiler/Compiler.h"
using namespace goos;
Val * Compiler::compile_top_level(const goos::Object& form, const goos::Object& rest, Env* env) {
return compile_begin(form, rest, env);
}
Val * Compiler::compile_begin(const goos::Object& form, const goos::Object& rest, Env* env) {
(void)form;
Val* result = get_none();
for_each_in_list(rest, [&](const Object& o){
result = compile_error_guard(o, env);
});
return result;
}