4 include term-colours.4th
6 include catch-throw.4th
28 make-type boolean-type
29 make-type character-type
35 make-type primitive-proc-type
36 make-type compound-proc-type
37 make-type fileport-type
38 : istype? ( obj type -- obj bool )
43 \ ---- Exceptions ---- {{{
45 variable nextexception
48 create nextexception @ ,
52 make-exception recoverable-exception
53 make-exception unrecoverable-exception
55 : display-exception-msg ( addr count -- )
68 ['] display-exception-msg ,
76 \ ---- List-structured memory ---- {{{
78 10000 constant scheme-memsize
80 create car-cells scheme-memsize allot
81 create car-type-cells scheme-memsize allot
82 create cdr-cells scheme-memsize allot
83 create cdr-type-cells scheme-memsize allot
85 create nextfrees scheme-memsize allot
96 nextfrees nextfree @ + @
99 nextfree @ scheme-memsize >= if
103 nextfree @ scheme-memsize >= if
104 unrecoverable-exception throw s" Out of memory!"
108 : cons ( car-obj cdr-obj -- pair-obj )
109 cdr-type-cells nextfree @ + !
110 cdr-cells nextfree @ + !
111 car-type-cells nextfree @ + !
112 car-cells nextfree @ + !
118 : car ( pair-obj -- car-obj )
120 dup car-cells + @ swap
124 : cdr ( pair-obj -- car-obj )
126 dup cdr-cells + @ swap
130 : set-car! ( obj pair-obj -- )
132 rot swap car-type-cells + !
136 : set-cdr! ( obj pair-obj -- )
138 rot swap cdr-type-cells + !
143 : nil? nil-type istype? ;
146 : none? none-type istype? ;
148 : objvar create nil swap , , ;
150 : value@ ( objvar -- val ) @ ;
151 : type@ ( objvar -- type ) 1+ @ ;
152 : value! ( newval objvar -- ) ! ;
153 : type! ( newtype objvar -- ) 1+ ! ;
154 : obj! ( newobj objvar -- ) dup rot swap 1+ ! ! ;
155 : obj@ ( objvar -- obj ) dup @ swap 1+ @ ;
157 : objeq? ( obj obj -- bool )
160 : 2rot ( a1 a2 b1 b2 c1 c2 -- b1 b2 c1 c2 a1 a2 )
161 >R >R ( a1 a2 b1 b2 )
162 2swap ( b1 b2 a1 a2 )
163 R> R> ( b1 b2 a1 a2 c1 c2 )
167 : -2rot ( a1 a2 b1 b2 c1 c2 -- c1 c2 a1 a2 b1 b2 )
168 2swap ( a1 a2 c1 c2 b1 b2 )
169 >R >R ( a1 a2 c1 c2 )
170 2swap ( c1 c2 a1 a2 )
176 \ ---- Port I/O ---- {{{
178 : fileport>fid ( fileport -- fid )
181 : fid>fileport ( fid -- fileport )
184 : open-input-file ( addr n -- fileport )
185 r/o open-file drop fid>fileport
188 : close-port ( fileport -- )
189 fileport>fid close-file drop
192 objvar console-i/o-port
193 0 fileport-type console-i/o-port obj!
195 objvar current-input-port
196 console-i/o-port obj@ current-input-port obj!
198 : read-port ( fileport -- obj )
199 current-input-port obj!
202 : read-console ( -- obj )
203 console-i/o-port obj@ read-port ;
207 \ ---- Pre-defined symbols ---- {{{
211 : duplicate-charlist ( charlist -- copy )
213 2dup car 2swap cdr recurse cons
216 : charlist-equiv ( charlist charlist -- bool )
225 2drop 2drop true exit
227 2drop 2drop false exit
232 2drop 2drop false exit
239 car drop -rot car drop = if
240 cdr 2swap cdr recurse
246 : charlist>symbol ( charlist -- symbol-obj )
265 drop symbol-type 2dup
266 symbol-table obj@ cons
271 : cstr>charlist ( addr n -- charlist )
275 2dup drop @ character-type 2swap
283 : create-symbol ( -- )
291 does> dup @ swap 1+ @
294 create-symbol quote quote-symbol
295 create-symbol quasiquote quasiquote-symbol
296 create-symbol unquote unquote-symbol
297 create-symbol unquote-splicing unquote-splicing-symbol
298 create-symbol define define-symbol
299 create-symbol define-macro define-macro-symbol
300 create-symbol set! set!-symbol
301 create-symbol ok ok-symbol
302 create-symbol if if-symbol
303 create-symbol lambda lambda-symbol
304 create-symbol λ λ-symbol
305 create-symbol begin begin-symbol
309 \ ---- Environments ---- {{{
311 : enclosing-env ( env -- env )
314 : first-frame ( env -- frame )
317 : make-frame ( vars vals -- frame )
320 : frame-vars ( frame -- vars )
323 : frame-vals ( frame -- vals )
326 : add-binding ( var val frame -- )
327 2swap 2over frame-vals cons
329 2swap 2over frame-vars cons
333 : extend-env ( vars vals env -- env )
343 : get-vars-vals-frame ( var frame -- bool )
344 2dup frame-vars vars obj!
348 vars obj@ nil objeq? false =
350 2dup vars obj@ car objeq? if
355 vars obj@ cdr vars obj!
356 vals obj@ cdr vals obj!
362 : get-vars-vals ( var env -- vars? vals? bool )
367 2over 2over first-frame
368 get-vars-vals-frame if
370 vars obj@ vals obj@ true
384 : lookup-var ( var env -- val )
388 recoverable-exception throw" Tried to read unbound variable."
392 : set-var ( var val env -- )
393 >R >R 2swap R> R> ( val var env )
395 2swap 2drop ( val vals )
398 recoverable-exception throw" Tried to set unbound variable."
404 : define-var ( var val env -- )
407 2over env obj@ ( var val var env )
409 2swap 2drop ( var val vals )
414 first-frame ( var val frame )
421 : make-procedure ( params body env -- proc )
424 drop compound-proc-type
428 nil nil nil extend-env
433 \ ---- Primitives ---- {{{
435 : make-primitive ( cfa -- )
442 rot primitive-proc-type ( var prim )
443 global-env obj@ define-var
446 : ensure-arg-count ( args n -- )
448 drop nil objeq? false = if
449 recoverable-exception throw" Too many arguments for primitive procedure."
453 recoverable-exception throw" Too few arguments for primitive procedure."
460 : ensure-arg-type-and-count ( tn tn-1 ... t2 t1 args n -- )
462 drop nil objeq? false = if
463 recoverable-exception throw" Too many arguments for primitive procedure."
467 recoverable-exception throw" Too few arguments for primitive procedure."
470 2dup cdr 2swap car ( ... t1 n args' arg1 )
471 2rot 1- swap 2swap rot ( ... args' n-1 arg1 t1 )
473 recoverable-exception throw" Incorrect type for primitive procedure."
481 : push-args-to-stack ( args -- arg1 arg2 ... argn )
491 : add-fa-checks ( cfa n -- cfa' )
492 here current @ 1+ dup @ , !
496 ['] 2dup , ['] lit , , ['] ensure-arg-count ,
497 ['] push-args-to-stack ,
498 ['] lit , , ['] execute ,
502 : add-fa-type-checks ( cfa t1 t2 ... tn n -- cfa' )
503 here current @ 1+ dup @ , !
510 dup ( cfa t1 t2 ... tn n m )
515 rot ['] lit , , ( cfa t1 t2 ... tn-1 n m )
521 ['] lit , , ['] ensure-arg-type-and-count ,
523 ['] push-args-to-stack ,
524 ['] lit , , ['] execute ,
530 : make-fa-primitive ( cfa n -- )
531 add-fa-checks make-primitive ;
533 : make-fa-type-primitive ( cfa t1 t2 ... tn n -- )
534 add-fa-type-checks make-primitive ;
537 bold fg red ." Incorrect argument type." reset-term cr
541 : ensure-arg-type ( arg type -- arg )
543 recoverable-exception throw" Incorrect argument type for primitive procedure."
550 \ ---- Macros ---- {{{
554 ( Look up macro in macro table. Returns nil if
556 : lookup-macro ( name_symbol -- proc )
575 : make-macro ( name_symbol params body env -- )
578 2swap ( proc name_symbol )
585 2over 2over ( proc name table name table )
587 2swap 2drop ( proc table )
599 macro-table obj@ cons
608 variable stored-parse-idx
609 create parse-str 161 allot
610 variable parse-str-span
612 create parse-idx-stack 10 allot
613 variable parse-idx-sp
614 parse-idx-stack parse-idx-sp !
617 parse-idx @ parse-idx-sp @ !
622 parse-idx-sp @ parse-idx-stack <= abort" Parse index stack underflow."
626 parse-idx-sp @ @ parse-idx ! ;
630 '\n' parse-str parse-str-span @ + !
631 1 parse-str-span +! ;
634 4 parse-str parse-str-span @ + !
635 1 parse-str-span +! ;
642 current-input-port obj@ console-i/o-port obj@ objeq? if
643 parse-str 160 expect cr
644 span @ parse-str-span !
646 parse-str 160 current-input-port obj@ fileport>fid read-line
647 drop swap parse-str-span !
649 parse-str-span @ 0= and if append-eof then
660 : charavailable? ( -- bool )
661 parse-str-span @ parse-idx @ > ;
663 : nextchar ( -- char )
664 charavailable? false = if getline then
665 parse-str parse-idx @ + @ ;
668 : whitespace? ( -- bool )
680 nextchar [char] ( = or
681 nextchar [char] ) = or
684 : commentstart? ( -- bool )
685 nextchar [char] ; = ;
689 false \ Indicates whether or not we're eating a comment
692 dup whitespace? or commentstart? or
694 dup nextchar '\n' = and if
695 invert \ Stop eating comment
697 dup false = commentstart? and if
698 invert \ Begin eating comment
713 nextchar [char] - = ;
716 nextchar [char] + = ;
718 : fixnum? ( -- bool )
744 : flonum? ( -- bool )
751 \ Record starting parse idx:
752 \ Want to detect whether any characters (following +/-) were eaten.
759 [char] . nextchar = if
766 [char] e nextchar = [char] E nextchar = or if
774 drop pop-parse-idx false exit
782 \ This is a real number if characters were
783 \ eaten and the next characer is a delimiter.
784 parse-idx @ < delim? and
789 : boolean? ( -- bool )
790 nextchar [char] # <> if false exit then
797 and if pop-parse-idx false exit then
809 : str-equiv? ( str -- bool )
826 delim? false = if drop false then
831 : character? ( -- bool )
832 nextchar [char] # <> if false exit then
837 nextchar [char] \ <> if pop-parse-idx false exit then
841 S" newline" str-equiv? if pop-parse-idx true exit then
842 S" space" str-equiv? if pop-parse-idx true exit then
843 S" tab" str-equiv? if pop-parse-idx true exit then
845 charavailable? false = if pop-parse-idx false exit then
851 nextchar [char] ( = ;
853 : string? ( -- bool )
854 nextchar [char] " = ;
856 : readfixnum ( -- num-atom )
867 10 * nextchar [char] 0 - +
876 : readbool ( -- bool-obj )
879 nextchar [char] f = if
890 : readchar ( -- char-obj )
894 S" newline" str-equiv? if 7 parse-idx +! '\n' character-type exit then
895 S" space" str-equiv? if 5 parse-idx +! bl character-type exit then
896 S" tab" str-equiv? if 3 parse-idx +! 9 character-type exit then
898 nextchar character-type
903 : readstring ( -- charlist )
904 nextchar [char] " = if
909 ." No delimiter following right double quote. Aborting." cr
918 nextchar [char] \ = if
921 [char] n of '\n' endof
922 [char] " of [char] " endof
928 inc-parse-idx character-type
935 : readsymbol ( -- charlist )
936 delim? if nil exit then
938 nextchar inc-parse-idx character-type
945 : readpair ( -- pairobj )
949 nextchar [char] ) = if
954 ." No delimiter following right paren. Aborting." cr
963 \ Read first pair element
968 nextchar [char] . = if
973 ." No delimiter following '.'. Aborting." cr
987 \ Parse a scheme expression
1013 nextchar [char] " <> if
1014 bold red ." Missing closing double-quote." reset-term cr
1032 nextchar [char] ) <> if
1033 bold red ." Missing closing paren." reset-term cr
1042 nextchar [char] ' = if
1044 quote-symbol recurse nil cons cons exit
1047 nextchar [char] ` = if
1049 quasiquote-symbol recurse nil cons cons exit
1052 nextchar [char] , = if
1054 nextchar [char] @ = if
1056 unquote-splicing-symbol recurse nil cons cons exit
1058 unquote-symbol recurse nil cons cons exit
1068 \ Anything else is parsed as a symbol
1069 readsymbol charlist>symbol
1071 \ Replace λ with lambda
1072 2dup λ-symbol objeq? if
1081 \ ---- Eval ---- {{{
1083 : self-evaluating? ( obj -- obj bool )
1084 boolean-type istype? if true exit then
1085 fixnum-type istype? if true exit then
1086 character-type istype? if true exit then
1087 string-type istype? if true exit then
1088 nil-type istype? if true exit then
1089 none-type istype? if true exit then
1094 : tagged-list? ( obj tag-obj -- obj bool )
1096 pair-type istype? false = if
1102 : quote? ( obj -- obj bool )
1103 quote-symbol tagged-list? ;
1105 : quote-body ( quote-obj -- quote-body-obj )
1108 : quasiquote? ( obj -- obj bool )
1109 quasiquote-symbol tagged-list? ;
1111 : unquote? ( obj -- obj bool )
1112 unquote-symbol tagged-list? ;
1114 : unquote-splicing? ( obj -- obj bool )
1115 unquote-splicing-symbol tagged-list? ;
1117 : eval-unquote ( env obj -- res )
1121 recoverable-exception throw" no arguments to unquote."
1126 recoverable-exception throw" too many arguments to unquote."
1129 2drop car 2swap eval
1132 ( Create a new list from elements of l1 consed on to l2 )
1133 : join-lists ( l2 l1 -- l3 )
1134 nil? if 2drop exit then
1141 defer eval-quasiquote-item
1142 : eval-quasiquote-pair ( env obj -- res )
1143 2over 2over ( env obj env obj )
1145 cdr eval-quasiquote-item
1147 -2rot car ( cdritem env objcar )
1149 unquote-splicing? if
1150 eval-unquote ( cdritems caritem )
1158 eval-quasiquote-item ( cdritems caritem )
1173 pair-type istype? if
1174 eval-quasiquote-pair exit
1178 ; is eval-quasiquote-item
1180 : eval-quasiquote ( obj env -- res )
1181 2swap cdr ( env args )
1184 recoverable-exception throw" no arguments to quasiquote."
1187 2dup cdr ( env args args-cdr )
1189 recoverable-exception throw" too many arguments to quasiquote."
1192 2drop car ( env arg )
1194 eval-quasiquote-item
1197 : variable? ( obj -- obj bool )
1198 symbol-type istype? ;
1200 : definition? ( obj -- obj bool )
1201 define-symbol tagged-list? ;
1203 : make-lambda ( params body -- lambda-exp )
1204 lambda-symbol -2rot cons cons ;
1206 ( Handles iterative expansion of defines in
1207 terms of nested lambdas. Most Schemes only
1208 handle one iteration of expansion! )
1209 : definition-var-val ( obj -- var val )
1211 cdr 2dup cdr 2swap car ( val var )
1214 symbol-type istype? false =
1216 2dup cdr 2swap car ( val formals var' )
1217 -2rot 2swap ( var' formals val )
1218 make-lambda nil cons ( var' val' )
1225 : eval-definition ( obj env -- res )
1226 2dup 2rot ( env env obj )
1227 definition-var-val ( env env var val )
1228 2rot eval ( env var val )
1230 2rot ( var val env )
1236 : assignment? ( obj -- obj bool )
1237 set!-symbol tagged-list? ;
1239 : assignment-var ( obj -- var )
1242 : assignment-val ( obj -- val )
1245 : eval-assignment ( obj env -- res )
1247 2over 2over ( env obj env obj )
1248 assignment-val 2swap ( env obj valexp env )
1249 eval ( env obj val )
1251 2swap assignment-var 2swap ( env var val )
1253 2rot ( var val env )
1259 : macro-definition? ( obj -- obj bool )
1260 define-macro-symbol tagged-list? ;
1262 : macro-definition-name ( exp -- mname )
1265 : macro-definition-params ( exp -- params )
1268 : macro-definition-body ( exp -- body )
1272 : eval-define-macro ( obj env -- res )
1275 2dup macro-definition-name 2swap ( name obj )
1276 2dup macro-definition-params 2swap ( name params obj )
1277 macro-definition-body ( name params body )
1279 env obj@ ( name params body env )
1287 : if? ( obj -- obj bool )
1288 if-symbol tagged-list? ;
1290 : if-predicate ( ifobj -- pred )
1293 : if-consequent ( ifobj -- conseq )
1296 : if-alternative ( ifobj -- alt|none )
1304 : false? ( boolobj -- boolean )
1305 boolean-type istype? if
1306 false boolean-type objeq?
1312 : true? ( boolobj -- bool )
1315 : lambda? ( obj -- obj bool )
1316 lambda-symbol tagged-list? ;
1318 : lambda-parameters ( obj -- params )
1321 : lambda-body ( obj -- body )
1324 : begin? ( obj -- obj bool )
1325 begin-symbol tagged-list? ;
1327 : begin-actions ( obj -- actions )
1330 : eval-sequence ( explist env -- finalexp env )
1331 ( Evaluates all bar the final expressions in
1332 an an expression list. The final expression
1333 is returned to allow for tail optimization. )
1335 2swap ( env explist )
1337 \ Abort on empty list
1344 2dup cdr ( env explist nextexplist )
1347 -2rot car 2over ( nextexplist env exp env )
1349 2drop \ discard result
1350 2swap ( env nextexplist )
1353 2drop car 2swap ( finalexp env )
1356 : application? ( obj -- obj bool )
1359 : operator ( obj -- operator )
1362 : operands ( obj -- operands )
1365 : nooperands? ( operands -- bool )
1368 : first-operand ( operands -- operand )
1371 : rest-operands ( operands -- other-operands )
1374 : list-of-vals ( args env -- vals )
1380 2over 2over first-operand 2swap eval
1381 -2rot rest-operands 2swap recurse
1386 : procedure-params ( proc -- params )
1387 drop pair-type car ;
1389 : procedure-body ( proc -- body )
1390 drop pair-type cdr car ;
1392 : procedure-env ( proc -- body )
1393 drop pair-type cdr cdr car ;
1395 ( Ensure terminating symbol arg name is handled
1396 specially to allow for variadic procedures. )
1397 : flatten-proc-args ( argvals argnames -- argvals' argnames' )
1399 2over nil? false = if
1400 recoverable-exception throw" Too many arguments for compound procedure."
1407 symbol-type istype? if
1417 recoverable-exception throw" Too few arguments for compound procedure."
1424 recurse ( argvals argnames argvals'' argnames'' )
1425 2rot car 2swap cons ( argvals argvals'' argnames' )
1426 2rot car 2rot cons ( argnames' argvals' )
1430 : apply ( proc argvals -- result )
1432 primitive-proc-type of
1436 compound-proc-type of
1437 2dup procedure-body ( argvals proc body )
1438 -2rot 2dup procedure-params ( body argvals proc argnames )
1439 -2rot procedure-env ( body argnames argvals procenv )
1445 extend-env ( body env )
1449 R> drop ['] eval goto-deferred \ Tail call optimization
1452 recoverable-exception throw" Object not applicable."
1456 ( Simply evaluates the given procedure with expbody as its argument. )
1457 : macro-expand ( proc expbody -- result )
1459 2dup procedure-body ( expbody proc procbody )
1460 -2rot 2dup procedure-params ( procbody expbody proc argnames )
1461 -2rot procedure-env ( procbody argnames expbody procenv )
1467 extend-env eval-sequence eval
1470 :noname ( obj env -- result )
1485 2swap eval-quasiquote
1495 2swap eval-definition
1500 2swap eval-assignment
1504 macro-definition? if
1505 2swap eval-define-macro
1521 ['] eval goto-deferred
1525 2dup lambda-parameters
1534 ['] eval goto-deferred
1539 2over 2over ( env exp env exp )
1540 operator ( env exp env opname )
1542 2dup lookup-macro nil? false = if
1543 \ Macro function evaluation
1545 ( env exp env opname mproc )
1546 2swap 2drop -2rot 2drop cdr ( env mproc body )
1551 ['] eval goto-deferred
1553 \ Regular function application
1555 2drop ( env exp env opname )
1557 2swap eval ( env exp proc )
1559 -2rot ( proc env exp )
1560 operands 2swap ( proc operands env )
1561 list-of-vals ( proc argvals )
1568 recoverable-exception throw" Tried to evaluate object with unknown type."
1573 \ ---- Print ---- {{{
1575 : printfixnum ( fixnumobj -- ) drop 0 .R ;
1577 : printbool ( numobj -- )
1585 : printchar ( charobj -- )
1588 9 of ." #\tab" endof
1589 bl of ." #\space" endof
1590 '\n' of ." #\newline" endof
1596 : (printstring) ( stringobj -- )
1597 nil? if 2drop exit then
1601 '\n' of ." \n" drop endof
1602 [char] \ of ." \\" drop endof
1603 [char] " of [char] \ emit [char] " emit drop endof
1609 : printstring ( stringobj -- )
1614 : printsymbol ( symbolobj -- )
1615 nil-type istype? if 2drop exit then
1621 : printnil ( nilobj -- )
1624 : printpair ( pairobj -- )
1628 nil-type istype? if 2drop exit then
1629 pair-type istype? if space recurse exit then
1633 : printprim ( primobj -- )
1634 2drop ." <primitive procedure>" ;
1636 : printcomp ( primobj -- )
1637 2drop ." <compound procedure>" ;
1639 : printnone ( noneobj -- )
1640 2drop ." Unspecified return value" ;
1642 : printport ( port -- )
1646 fixnum-type istype? if printfixnum exit then
1647 boolean-type istype? if printbool exit then
1648 character-type istype? if printchar exit then
1649 string-type istype? if printstring exit then
1650 symbol-type istype? if printsymbol exit then
1651 nil-type istype? if printnil exit then
1652 pair-type istype? if ." (" printpair ." )" exit then
1653 primitive-proc-type istype? if printprim exit then
1654 compound-proc-type istype? if printcomp exit then
1655 none-type istype? if printnone exit then
1657 recoverable-exception throw" Tried to print object with unknown type."
1662 \ ---- Garbage Collection ---- {{{
1667 variable gc-stack-depth
1670 depth gc-stack-depth !
1674 false gc-enabled ! ;
1679 : pairlike? ( obj -- obj bool )
1680 pair-type istype? if true exit then
1681 string-type istype? if true exit then
1682 symbol-type istype? if true exit then
1683 compound-proc-type istype? if true exit then
1688 : pairlike-marked? ( obj -- obj bool )
1689 over nextfrees + @ 0=
1692 : mark-pairlike ( obj -- obj )
1693 over nextfrees + 0 swap !
1702 : gc-mark-obj ( obj -- )
1704 pairlike? invert if 2drop exit then
1705 pairlike-marked? if 2drop exit then
1716 scheme-memsize nextfree !
1717 0 scheme-memsize 1- do
1718 nextfrees i + @ 0<> if
1719 nextfree @ nextfrees i + !
1725 \ Following a GC, this gives the amount of free memory
1729 nextfrees i + @ 0= if 1+ then
1733 \ Debugging word - helps spot memory that is retained
1736 nextfrees i + @ 0<> if
1748 symbol-table obj@ gc-mark-obj
1749 macro-table obj@ gc-mark-obj
1750 global-env obj@ gc-mark-obj
1752 depth gc-stack-depth @ do
1761 \ ." (" gc-count-marked . ." pairs marked as used.)" cr
1762 ; is collect-garbage
1766 \ ---- Loading files ---- {{{
1768 : charlist>cstr ( charlist addr -- n )
1770 dup 2swap ( origaddr addr charlist )
1776 drop ( origaddr addr charlist char )
1777 -rot 2swap ( origaddr charlist addr char )
1779 1+ -rot ( origaddr nextaddr charlist )
1782 2drop ( origaddr finaladdr )
1786 : load ( addr n -- finalResult )
1791 ok-symbol ( port res )
1794 2over read-port ( port res obj )
1796 2dup EOF character-type objeq? if
1797 2drop 2swap close-port
1801 2swap 2drop ( port obj )
1803 global-env obj@ eval ( port res )
1809 \ ---- Standard Library ---- {{{
1811 include scheme-primitives.4th
1813 s" scheme-library.scm" load 2drop
1819 ( REPL calls REPL-BODY in a loop until repl-body returns true. )
1820 : repl-body ( -- bool )
1821 cr bold fg green ." > " reset-term
1825 2dup EOF character-type objeq? if
1827 bold fg blue ." Moriturus te saluto." reset-term cr
1831 global-env obj@ eval
1833 fg cyan ." ; " print reset-term
1839 cr ." Welcome to scheme.forth.jl!" cr
1840 ." Use Ctrl-D to exit." cr
1849 recoverable-exception of false endof
1850 unrecoverable-exception of true endof