aboutsummaryrefslogtreecommitdiff
path: root/process/step0_repl.txt
blob: c3c6aa08f8fc6ea82839ab3f1099db3d12ceedb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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> ")))