--- gforth/quotes.fs 2002/12/04 10:42:59 1.6 +++ gforth/quotes.fs 2005/12/31 15:46:10 1.10 @@ -1,6 +1,6 @@ \ quote: S\" and .\" words -\ Copyright (C) 2002 Free Software Foundation, Inc. +\ Copyright (C) 2002,2003,2005 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -33,7 +33,7 @@ create \-escape-table 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 o c, char p c, char q c, 13 c, char s c, 9 c, char u c, +char o c, char p c, char " c, 13 c, char s c, 9 c, char u c, 11 c, : \-escape ( c-addr1 -- c-addr2 c ) @@ -59,7 +59,7 @@ char o c, char p c, char q c, 13 endif 1 chars under+ ; -: \"-parse ( "string"<"> -- c-addr u ) +: \"-parse ( "string"<"> -- c-addr u ) \ gforth backslash-quote-parse \G parses string, translating @code{\}-escapes to characters (as in \G C). The resulting string resides at @code{here char+}. The \G supported @code{\-escapes} are: @code{\a} BEL (alert), @code{\b} @@ -102,7 +102,7 @@ interpret/compile: .\" ( compilation 'cc s" a" drop \-escape 7 <> throw drop .s \"-parse " s" " str= 0= throw .s \"-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 str= 0= throw + s\" \a\bcd\e\fghijklm\12op\"\rs\tu\v" \-escape-table over str= 0= throw s\" \w\0101\x041\"\\" name wAA"\ str= 0= throw s\" s\\\" \\" ' evaluate catch 0= throw [endif]