version 1.2, 2002/04/30 20:12:36
|
version 1.4, 2002/05/01 05:33:56
|
Line 33
|
Line 33
|
create \-escape-table |
create \-escape-table |
7 c, 8 c, char c c, char d c, 27 c, 12 c, char g c, |
7 c, 8 c, char c c, char d c, 27 c, 12 c, char g c, |
char h c, char i c, char j c, char k c, char l c, char m c, 10 c, |
char h c, char i c, char j c, char k c, char l c, char m c, 10 c, |
char o c, char p c, char q c, 13 c, char s c, 8 c, char u c, |
char o c, char p c, char q c, 13 c, char s c, 9 c, char u c, |
11 c, |
11 c, |
|
|
: \-escape ( c-addr1 -- c-addr2 c ) |
: \-escape ( c-addr1 -- c-addr2 c ) |
Line 94 interpret/compile: s\" ( compilation 'cc
|
Line 94 interpret/compile: s\" ( compilation 'cc
|
:noname postpone (.") \"-parse dup c, 1+ chars allot drop ; |
:noname postpone (.") \"-parse dup c, 1+ chars allot drop ; |
interpret/compile: .\" ( compilation 'ccc"' -- ; run-time -- ) \ gforth dot-backslash-quote |
interpret/compile: .\" ( compilation 'ccc"' -- ; run-time -- ) \ gforth dot-backslash-quote |
|
|
1 [if] \ test |
0 [if] \ test |
s" 123" drop 10 parse-num-x 123 <> throw drop .s |
s" 123" drop 10 parse-num-x 123 <> throw drop .s |
s" 123a" drop 10 parse-num 123 <> throw drop .s |
s" 123a" drop 10 parse-num 123 <> throw drop .s |
s" x1fg" drop \-escape 31 <> throw drop .s |
s" x1fg" drop \-escape 31 <> throw drop .s |