mirror of
https://github.com/kanaka/mal.git
synced 2024-09-17 16:47:22 +03:00
6bf89ea118
- 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.
22 lines
773 B
JSON
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
|
|
]
|
|
|