version 1.3, 2002/04/30 20:19:12
|
version 1.5, 2002/09/14 08:20:19
|
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 100 interpret/compile: .\" ( compilation 'cc
|
Line 100 interpret/compile: .\" ( compilation 'cc
|
s" x1fg" drop \-escape 31 <> throw drop .s |
s" x1fg" drop \-escape 31 <> throw drop .s |
s" 00129" drop \-escape 10 <> throw drop .s |
s" 00129" drop \-escape 10 <> throw drop .s |
s" a" drop \-escape 7 <> throw drop .s |
s" a" drop \-escape 7 <> throw drop .s |
\"-parse " s" " compare 0<> throw .s |
\"-parse " s" " str= 0= throw .s |
\"-parse \a\b\c\e\f\n\r\t\v\100\x40xabcde" dump |
\"-parse \a\b\c\e\f\n\r\t\v\100\x40xabcde" dump |
s\" \a\bcd\e\fghijklm\12opq\rs\tu\v" \-escape-table over compare 0<> throw |
s\" \a\bcd\e\fghijklm\12opq\rs\tu\v" \-escape-table over str= 0= throw |
s\" \w\0101\x041\"\\" name wAA"\ compare 0<> throw |
s\" \w\0101\x041\"\\" name wAA"\ str= 0= throw |
s\" s\\\" \\" ' evaluate catch 0= throw |
s\" s\\\" \\" ' evaluate catch 0= throw |
[endif] |
[endif] |