mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
12 lines
213 B
Plaintext
12 lines
213 B
Plaintext
--- step0_repl ----------------------------------
|
|
READ(str): return str
|
|
|
|
EVAL(ast,env): return ast
|
|
|
|
PRINT(exp): return exp
|
|
|
|
rep(str): return PRINT(EVAL(READ(str),""))
|
|
|
|
main loop: println(rep(readline("user> ")))
|
|
|