-\ Scheme interpreter
-
vocabulary scheme
scheme definitions
inc-parse-idx
- S" newline" str-equiv? if true exit then
- S" space" str-equiv? if true exit then
- S" tab" str-equiv? if true exit then
+ S" newline" str-equiv? if pop-parse-idx true exit then
+ S" space" str-equiv? if pop-parse-idx true exit then
+ S" tab" str-equiv? if pop-parse-idx true exit then
charavailable? false = if pop-parse-idx false exit then
inc-parse-idx
inc-parse-idx
- S" newline" str-equiv? if '\n' character-type exit then
- S" space" str-equiv? if bl character-type exit then
- S" tab" str-equiv? if 9 character-type exit then
+ S" newline" str-equiv? if 7 parse-idx +! '\n' character-type exit then
+ S" space" str-equiv? if 5 parse-idx +! bl character-type exit then
+ S" tab" str-equiv? if 3 parse-idx +! 9 character-type exit then
nextchar character-type
bl of ." #\space" endof
'\n' of ." #\newline" endof
- ." #\" emit
+ dup ." #\" emit
endcase
-
- trace
;
: print ( obj -- )