mirror of
https://github.com/open-goal/jak-project
synced 2026-08-14 12:34:36 -04:00
Add lambda and static objects (#30)
* add some more tests for let * support static strings * add function calling * add prints for windows debgu * one test only * try swapping r14 and r15 in windows * swap back * disable defun for now * fix massive bug * fix formatting
This commit is contained in:
@@ -121,7 +121,7 @@ Val* Compiler::compile_listen_to_target(const goos::Object& form,
|
||||
Env* env) {
|
||||
(void)env;
|
||||
std::string ip = "127.0.0.1";
|
||||
int port = 8112;
|
||||
int port = 8112; // todo, get from some constant somewhere
|
||||
bool got_port = false, got_ip = false;
|
||||
|
||||
for_each_in_list(rest, [&](const goos::Object& o) {
|
||||
@@ -166,4 +166,20 @@ Val* Compiler::compile_poke(const goos::Object& form, const goos::Object& rest,
|
||||
va_check(form, args, {}, {});
|
||||
m_listener.send_poke();
|
||||
return get_none();
|
||||
}
|
||||
|
||||
Val* Compiler::compile_gs(const goos::Object& form, const goos::Object& rest, Env* env) {
|
||||
(void)env;
|
||||
auto args = get_va(form, rest);
|
||||
va_check(form, args, {}, {});
|
||||
m_goos.execute_repl();
|
||||
return get_none();
|
||||
}
|
||||
|
||||
Val* Compiler::compile_set_config(const goos::Object& form, const goos::Object& rest, Env* env) {
|
||||
(void)env;
|
||||
auto args = get_va(form, rest);
|
||||
va_check(form, args, {goos::ObjectType::SYMBOL, {}}, {});
|
||||
m_settings.set(symbol_string(args.unnamed.at(0)), args.unnamed.at(1));
|
||||
return get_none();
|
||||
}
|
||||
Reference in New Issue
Block a user