1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 21:57:38 +03:00
mal/impls/picolisp/step0_repl.l

29 lines
419 B
Plaintext
Raw Permalink Normal View History

2016-09-30 11:05:43 +03:00
(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")
2016-09-30 11:39:42 +03:00
(use Eof
(until Eof
(let Input (readline "user> ")
(if (=0 Input)
(setq Eof T)
(prinl (rep Input)) ) ) ) )
2016-09-30 11:05:43 +03:00
(prinl)
(bye)