| 1 | <html><head><title>XLISP :sescape</title> |
| 2 | |
| 3 | <link rel="stylesheet" type="text/css" href="reference.css"> |
| 4 | |
| 5 | </head> |
| 6 | |
| 7 | <body> |
| 8 | |
| 9 | <a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 10 | <a href="../manual/contents.htm">Contents</a> | |
| 11 | <a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 12 | <a href="../examples/examples.htm">Examples</a> | |
| 13 | <a href="reference-index.htm">Reference</a> |
| 14 | |
| 15 | <hr> |
| 16 | |
| 17 | <h1>:sescape</h1> |
| 18 | |
| 19 | <hr> |
| 20 | |
| 21 | <p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody> |
| 22 | <tr valign="top"> |
| 23 | <td><nobr>Type:</nobr></td> |
| 24 | <td><nobr> - </nobr></td> |
| 25 | <td width="100%"><nobr>keyword</nobr></td> |
| 26 | </tr> |
| 27 | <tr valign="top"> |
| 28 | <td><nobr>Source:</nobr></td> |
| 29 | <td><nobr> - </nobr></td> |
| 30 | <td width="100%"><nobr>xlread.c</nobr></td> |
| 31 | </tr> |
| 32 | </tbody></table></p> |
| 33 | |
| 34 | <h2>Syntax</h2> |
| 35 | |
| 36 | <dl> |
| 37 | <dt> :sescape</dt> |
| 38 | </dl> |
| 39 | |
| 40 | <h2>Description</h2> |
| 41 | |
| 42 | <p>The ':sescape' keyword is an entry used in the |
| 43 | <a href="global-readtable.htm">*readtable*</a> system variable that contains |
| 44 | XLISP's data structures relating to the processing of characters from the |
| 45 | user [or files] and read-macro expansions. The existance of the ':sescape' |
| 46 | keyword means that the specified character is to be used as a single escape |
| 47 | character. The system defines that the the backslash character '\' is the |
| 48 | only defined ':sescape' character.</p> |
| 49 | |
| 50 | <h2>Examples</h2> |
| 51 | |
| 52 | <pre class="example"> |
| 53 | <font color="#008844">;; define a function to look in a table</font> |
| 54 | <font color="#008844">;; and print out any :SESCAPE character</font> |
| 55 | |
| 56 | (defun look-at (table) |
| 57 | (dotimes (ch 127) |
| 58 | (prog ((entry (aref table ch))) |
| 59 | (case entry |
| 60 | (:SESCAPE (princ (int-char ch))) |
| 61 | (t nil)))) |
| 62 | (terpri)) |
| 63 | |
| 64 | (look-at *readtable*) <font color="#008844">; prints \</font> |
| 65 | </pre> |
| 66 | |
| 67 | <p><b>Caution:</b> If you experiment with *readtable*, it is useful to save |
| 68 | the old value in a variable, so that you can restore the system state.</p> |
| 69 | |
| 70 | <p>See the |
| 71 | <a href="../manual/xlisp-man-008.htm#sescape">:sescape</a> |
| 72 | keyword in the <nobr>XLISP 2.0</nobr> manual.</p> |
| 73 | |
| 74 | <p><nobr> <a href="#top">Back to Top</nobr></a></p> |
| 75 | |
| 76 | <hr> |
| 77 | |
| 78 | <a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 79 | <a href="../manual/contents.htm">Contents</a> | |
| 80 | <a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 81 | <a href="../examples/examples.htm">Examples</a> | |
| 82 | <a href="reference-index.htm">Reference</a> |
| 83 | |
| 84 | </body></html> |