Debian Codegraph @

docsrc/xlisp/xlisp-doc/reference/keyword-mescape.htm

raw
1 <html><head><title>XLISP :mescape</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>&nbsp; -&nbsp;
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>:mescape</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>&nbsp;&nbsp;-&nbsp;&nbsp;</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>&nbsp;&nbsp;-&nbsp;&nbsp;</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>&nbsp;:mescape</dt>
38 </dl>
39
40 <h2>Description</h2>
41
42 <p>The ':mescape' keyword is an entry used in the
43 <a href="global-readtable.htm">*readtable*</a> system variable that
44 contains XLISP's data structures relating to the processing of characters
45 from the user (or files) and read-macro expansions. The existance of the
46 ':mescape' keyword means that the specified character is to be used as a
47 multiple escape character. The system defines that the the vertical bar
48 character '|' is the only ':mescape' 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 :mescape character</font>
55
56 (defun look-at (table)
57 (dotimes (ch 127)
58 (prog ((entry (aref table ch)))
59 (case entry
60 (:mescape (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
68 <nobr><a href="global-readtable.htm">*readtable*</a> ,</nobr> it is useful
69 to save the old value in a variable, so that you can restore the system
70 state.</p>
71
72 <p>See the
73 <a href="../manual/xlisp-man-008.htm#mescape">:mescape</a>
74 keyword in the <nobr>XLISP 2.0</nobr> manual.</p>
75
76 <p><nobr>&nbsp;&nbsp;<a href="#top">Back to Top</nobr></a></p>
77
78 <hr>
79
80 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
81 <a href="../manual/contents.htm">Contents</a> |
82 <a href="../tutorials/tutorials.htm">Tutorials</a> |
83 <a href="../examples/examples.htm">Examples</a> |
84 <a href="reference-index.htm">Reference</a>
85
86 </body></html>