This commit is contained in:
Scott Richmond 2024-08-01 17:45:09 -04:00
parent d9e0fd23ec
commit 7f64164078
5 changed files with 4 additions and 7 deletions

Binary file not shown.

View File

@ -6489,7 +6489,7 @@ var __emscripten_stack_alloc = (a0) => (__emscripten_stack_alloc = wasmExports['
var _emscripten_stack_get_current = () => (_emscripten_stack_get_current = wasmExports['emscripten_stack_get_current'])();
var ___cxa_is_pointer_type = createExportWrapper('__cxa_is_pointer_type', 1);
var dynCall_jiji = Module['dynCall_jiji'] = createExportWrapper('dynCall_jiji', 5);
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1816028;
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1816104;
function invoke_i(index) {
var sp = stackSave();
try {

Binary file not shown.

View File

@ -248,8 +248,6 @@
([e] (break [:err e])))
[:ok out])
(math/seedrandom (os/cryptorand 8))
(def ctx {
"add" +
"and" ludus/and

View File

@ -11,8 +11,6 @@
(import /src/prelude :as prelude)
(import /src/json :as j)
(math/seedrandom (os/cryptorand 8))
(defn ludus [source]
(when (= :error prelude/pkg) (error "could not load prelude"))
(def ctx @{:^parent prelude/ctx})
@ -39,8 +37,9 @@
(each err (validated :errors)
(e/validation-error err))
(break (-> out j/encode string)))
(try
(set result (i/interpret (parsed :ast) ctx))
(try (do
(math/seedrandom (os/cryptorand 8))
(set result (i/interpret (parsed :ast) ctx)))
([err]
(e/runtime-error err)
(break (-> out j/encode string))))