mirror of
https://github.com/open-goal/jak-project
synced 2026-06-07 12:07:48 -04:00
16 lines
477 B
C++
16 lines
477 B
C++
#include "goalc/compiler/Compiler.h"
|
|
#include "goalc/compiler/IR.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;
|
|
}
|