mirror of
https://github.com/kanaka/mal.git
synced 2024-09-21 02:27:10 +03:00
b32495e94b
Also update miniMAL Dockerfile to xenial.
28 lines
521 B
JSON
28 lines
521 B
JSON
["do",
|
|
|
|
["load", ["`", "miniMAL-core.json"]],
|
|
["load", ["`", "types.json"]],
|
|
["load", ["`", "reader.json"]],
|
|
["load", ["`", "printer.json"]],
|
|
|
|
["def", "READ", ["fn", ["strng"],
|
|
["read-str", "strng"]]],
|
|
|
|
["def", "EVAL", ["fn", ["ast", "env"],
|
|
"ast"]],
|
|
|
|
["def", "PRINT", ["fn", ["exp"],
|
|
["pr-str", "exp", true]]],
|
|
|
|
["def", "rep", ["fn", ["strng"],
|
|
["try",
|
|
["PRINT", ["EVAL", ["READ", "strng"], null]],
|
|
["catch", "exc",
|
|
["str", ["`", "Error: "], "exc"]]]]],
|
|
|
|
["repl", ["`", "user> "], "rep"],
|
|
|
|
null
|
|
|
|
]
|