1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-17 17:50:24 +03:00
mal/impls/miniMAL/miniMAL-core.json
Joel Martin 6bf89ea118 miniMAL: update to miniMAL-1.2.2
- Update to ubuntu 24.04 Dockerfile and add labels.
- update to working version of ffi-napi
- Remove from miniMAL-core.json the things that overlap with the builtin
  core functionality that miniMAL now provides in 1.2.2.
- Update ARGS variable to argv to align with how 1.2.2 now does command
  line parameters.
2024-08-03 11:06:43 -05:00

22 lines
773 B
JSON

["do",
["def", "repl", ["fn",["prompt", "rep"],
["let", ["readline", ["require", ["`", "readline"]],
"opts", ["new", "Object"],
"_", ["set", "opts", ["`", "input"], [".-", "process", ["`", "stdin"]]],
"_", ["set", "opts", ["`", "output"], [".-", "process", ["`", "stdout"]]],
"_", ["set", "opts", ["`", "terminal"], false],
"rl", [".", "readline", ["`", "createInterface"], "opts"],
"evl", ["fn", ["line"],
["do",
["println", ["rep", "line"]],
[".", "rl", ["`", "prompt"]]]]],
["do",
[".", "rl", ["`", "setPrompt"], "prompt"],
[".", "rl", ["`", "prompt"]],
[".", "rl", ["`", "on"], ["`", "line"], "evl"]]]]],
null
]