version 1.11, 2007/08/11 09:12:06
|
version 1.16, 2008/07/15 16:11:49
|
Line 1
|
Line 1
|
\ quote: S\" and .\" words |
\ quote: S\" and .\" words |
|
|
\ Copyright (C) 2002,2003,2005 Free Software Foundation, Inc. |
\ Copyright (C) 2002,2003,2005,2007,2008 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
\ Gforth is free software; you can redistribute it and/or |
\ Gforth is free software; you can redistribute it and/or |
\ modify it under the terms of the GNU General Public License |
\ modify it under the terms of the GNU General Public License |
\ as published by the Free Software Foundation; either version 2 |
\ as published by the Free Software Foundation, either version 3 |
\ of the License, or (at your option) any later version. |
\ of the License, or (at your option) any later version. |
|
|
\ This program is distributed in the hope that it will be useful, |
\ This program is distributed in the hope that it will be useful, |
Line 15
|
Line 15
|
\ GNU General Public License for more details. |
\ GNU General Public License for more details. |
|
|
\ You should have received a copy of the GNU General Public License |
\ You should have received a copy of the GNU General Public License |
\ along with this program; if not, write to the Free Software |
\ along with this program. If not, see http://www.gnu.org/licenses/. |
\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
[ifundef] umin |
|
: umin ( u1 u2 -- u ) |
|
2dup u> |
|
if |
|
swap |
|
then |
|
drop ; |
|
[then] |
|
|
: char/ ; immediate |
: char/ ; immediate |
|
|
Line 85 interpret/compile: s\" ( compilation 'cc
|
Line 93 interpret/compile: s\" ( compilation 'cc
|
\G Like @code{S"}, but translates C-like \-escape-sequences, as |
\G Like @code{S"}, but translates C-like \-escape-sequences, as |
\G follows: @code{\a} BEL (alert), @code{\b} BS, @code{\e} ESC (not in |
\G follows: @code{\a} BEL (alert), @code{\b} BS, @code{\e} ESC (not in |
\G C99), @code{\f} FF, @code{\n} newline, @code{\r} CR, @code{\t} HT, |
\G C99), @code{\f} FF, @code{\n} newline, @code{\r} CR, @code{\t} HT, |
\G @code{\v} VT, @code{\"} ", @code{\\} \, @code{\}[0-7]{1,3} octal |
\G @code{\v} VT, @code{\"} ", @code{\\} \, @code{\}[0-7]@{1,3@} octal |
\G numerical character value (non-standard), @code{\x}[0-9a-f]{0,2} |
\G numerical character value (non-standard), @code{\x}[0-9a-f]@{0,2@} |
\G hex numerical character value (standard only with two digits); a |
\G hex numerical character value (standard only with two digits); a |
\G @code{\} before any other character is reserved. |
\G @code{\} before any other character is reserved. |
|
|