;
: print ( obj -- )
- ." ;"
- number-type istype? if printnum exit then
- boolean-type istype? if printbool exit then
+ ." ; "
+ number-type istype? if ." => " printnum exit then
+ boolean-type istype? if ." => " printbool exit then
;
\ ---- REPL ----
repl-buffer parse-str !
: getline
- repl-buffer 1+ 160 expect cr span @ repl-buffer ! ;
+ repl-buffer 1+ 160 expect span @ repl-buffer ! ;
: eof?
repl-buffer @ 0= if false exit then
." Use Ctrl-D to exit." cr
begin
- cr bold fg green ." => " reset-term
+ cr bold fg green ." > " reset-term
getline
eof? if