1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 10:37:58 +03:00
mal/picolisp/step0_repl.l
2018-06-17 19:54:54 +02:00

29 lines
419 B
Plaintext

(de load-relative (Path)
(load (pack (car (file)) Path)) )
(load-relative "readline.l")
(de READ (String)
String)
(de EVAL (Ast)
Ast)
(de PRINT (Ast)
Ast)
(de rep (String)
(PRINT (EVAL (READ String))) )
(load-history ".mal_history")
(use Eof
(until Eof
(let Input (readline "user> ")
(if (=0 Input)
(setq Eof T)
(prinl (rep Input)) ) ) ) )
(prinl)
(bye)