mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
12 lines
212 B
Nim
12 lines
212 B
Nim
import rdstdin
|
|
|
|
proc read(str: string): string = str
|
|
|
|
proc eval(ast: string): string = ast
|
|
|
|
proc print(exp: string): string = exp
|
|
|
|
while true:
|
|
let line = readLineFromStdin("user> ")
|
|
echo line.read.eval.print
|