Compare commits
4 Commits
bf7dfe94bd
...
3b65092267
Author | SHA1 | Date | |
---|---|---|---|
|
3b65092267 | ||
|
0363d5a091 | ||
|
887d192c8a | ||
|
f0176548de |
Binary file not shown.
|
@ -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 _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 ___cxa_is_pointer_type = createExportWrapper('__cxa_is_pointer_type', 1);
|
||||||
var dynCall_jiji = Module['dynCall_jiji'] = createExportWrapper('dynCall_jiji', 5);
|
var dynCall_jiji = Module['dynCall_jiji'] = createExportWrapper('dynCall_jiji', 5);
|
||||||
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1836260;
|
var ___emscripten_embedded_file_data = Module['___emscripten_embedded_file_data'] = 1837508;
|
||||||
function invoke_i(index) {
|
function invoke_i(index) {
|
||||||
var sp = stackSave();
|
var sp = stackSave();
|
||||||
try {
|
try {
|
||||||
|
|
BIN
build/out.wasm
BIN
build/out.wasm
Binary file not shown.
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@ludus/ludus-js-pure",
|
"name": "@ludus/ludus-js-pure",
|
||||||
"version": "0.1.23",
|
"version": "0.1.24",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@ludus/ludus-js-pure",
|
"name": "@ludus/ludus-js-pure",
|
||||||
"version": "0.1.23",
|
"version": "0.1.24",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"shadow-cljs": "^2.26.0",
|
"shadow-cljs": "^2.26.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@ludus/ludus-js-pure",
|
"name": "@ludus/ludus-js-pure",
|
||||||
"version": "0.1.23",
|
"version": "0.1.24",
|
||||||
"description": "A Ludus interpreter in a pure JS function.",
|
"description": "A Ludus interpreter in a pure JS function.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "build/ludus.mjs",
|
"main": "build/ludus.mjs",
|
||||||
|
|
|
@ -326,6 +326,7 @@ fn join {
|
||||||
([]) -> ""
|
([]) -> ""
|
||||||
([str as :string]) -> str
|
([str as :string]) -> str
|
||||||
(strs as :list) -> join (strs, "")
|
(strs as :list) -> join (strs, "")
|
||||||
|
([], separator as :string) -> ""
|
||||||
([str as :string], separator as :string) -> str
|
([str as :string], separator as :string) -> str
|
||||||
([str, ...strs], separator as :string) -> fold (
|
([str, ...strs], separator as :string) -> fold (
|
||||||
fn (joined, to_join) -> concat (joined, separator, to_join)
|
fn (joined, to_join) -> concat (joined, separator, to_join)
|
||||||
|
|
|
@ -463,7 +463,8 @@
|
||||||
[:dict :keyword] (get prev curr :^nil)
|
[:dict :keyword] (get prev curr :^nil)
|
||||||
[:nil :keyword] :^nil
|
[:nil :keyword] :^nil
|
||||||
[:pkg :keyword] (get prev curr :^nil)
|
[:pkg :keyword] (get prev curr :^nil)
|
||||||
[:pkg :pkg-kw] (get prev curr :^nil)))
|
[:pkg :pkg-kw] (get prev curr :^nil)
|
||||||
|
(error (string "cannot call " (b/ludus/type prev) " `" (b/show prev) "`"))))
|
||||||
|
|
||||||
(defn- synthetic [ast ctx]
|
(defn- synthetic [ast ctx]
|
||||||
(def terms (ast :data))
|
(def terms (ast :data))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user