75 lines
12 KiB
HTML
75 lines
12 KiB
HTML
|
<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>CLHS: Section 2.1.4.2</TITLE>
|
||
|
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
|
||
|
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
|
||
|
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
|
||
|
<LINK REL=TOP HREF="../Front/index.htm">
|
||
|
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
|
||
|
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
|
||
|
<LINK REL=PREV HREF="02_ada.htm">
|
||
|
<LINK REL=UP HREF="02_ada.htm">
|
||
|
<LINK REL=NEXT HREF="02_adc.htm">
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="02_ada.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="02_ada.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="02_adc.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
<H2>
|
||
|
2.1.4.2 Constituent Traits</H2> <P>
|
||
|
Every <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> has one or more <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent traits</I></A> that define how the <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> is to be interpreted by the <A REL=DEFINITION HREF="26_glo_l.htm#lisp_reader"><I>Lisp reader</I></A> when the <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> is a <A REL=DEFINITION HREF="26_glo_c.htm#constituent"><I>constituent</I></A> <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A>. These <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent traits</I></A> are <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic"><I>alphabetic</I></A>[2], digit, <A REL=DEFINITION HREF="26_glo_p.htm#package_marker"><I>package marker</I></A>, plus sign, minus sign, dot, decimal point, <A REL=DEFINITION HREF="26_glo_r.htm#ratio_marker"><I>ratio marker</I></A>, <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker"><I>exponent marker</I></A>, and <A REL=DEFINITION HREF="26_glo_i.htm#invalid"><I>invalid</I></A>. <A REL=DEFINITION HREF="#constituenttraitsofstdchars">Figure 2-8</A> shows the <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent traits</I></A> of the <A REL=DEFINITION HREF="26_glo_s.htm#standard_character"><I>standard characters</I></A> and of certain <A REL=DEFINITION HREF="26_glo_s.htm#semi-standard"><I>semi-standard</I></A> <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A>; no mechanism is provided for changing the <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent trait</I></A> of a <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A>. Any <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> with the alphadigit <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent trait</I></A> in that figure is a digit if the <A REL=DEFINITION HREF="26_glo_c.htm#current_input_base"><I>current input base</I></A> is greater than that character's digit value, otherwise the <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> is <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic"><I>alphabetic</I></A>[2]. Any <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> quoted by a <A REL=DEFINITION HREF="26_glo_s.htm#single_escape"><I>single escape</I></A> is treated as an <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic"><I>alphabetic</I></A>[2] constituent, regardless of its normal syntax. <P>
|
||
|
<A NAME="constituenttraitsofstdchars"> <PRE>
|
||
|
|
||
|
constituent traits constituent traits
|
||
|
character character
|
||
|
----------
|
||
|
|
||
|
Backspace <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A> { <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]
|
||
|
Tab <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* } <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]
|
||
|
Newline <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* + <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2], plus sign
|
||
|
Linefeed <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* - <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2], minus sign
|
||
|
Page <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* . <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2], dot, decimal point
|
||
|
Return <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* / <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2], <A REL=DEFINITION HREF="26_glo_r.htm#ratio_marker">ratio marker</A>
|
||
|
Space <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>* A, a alphadigit
|
||
|
! <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] B, b alphadigit
|
||
|
" <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* C, c alphadigit
|
||
|
# <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* D, d alphadigit, double-float <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker">exponent marker</A>
|
||
|
$ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] E, e alphadigit, float <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker">exponent marker</A>
|
||
|
% <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] F, f alphadigit, single-float <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker">exponent marker</A>
|
||
|
& <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] G, g alphadigit
|
||
|
' <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* H, h alphadigit
|
||
|
( <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* I, i alphadigit
|
||
|
) <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* J, j alphadigit
|
||
|
* <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] K, k alphadigit
|
||
|
, <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* L, l alphadigit, long-float <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker">exponent marker</A>
|
||
|
0-9 alphadigit M, m alphadigit
|
||
|
: <A REL=DEFINITION HREF="26_glo_p.htm#package_marker">package marker</A> N, n alphadigit
|
||
|
; <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* O, o alphadigit
|
||
|
< <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] P, p alphadigit
|
||
|
= <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] Q, q alphadigit
|
||
|
> <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] R, r alphadigit
|
||
|
? <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] S, s alphadigit, short-float <A REL=DEFINITION HREF="26_glo_e.htm#exponent_marker">exponent marker</A>
|
||
|
@ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] T, t alphadigit
|
||
|
[ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] U, u alphadigit
|
||
|
\ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* V, v alphadigit
|
||
|
] <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] W, w alphadigit
|
||
|
^ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] X, x alphadigit
|
||
|
_ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2] Y, y alphadigit
|
||
|
` <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* Z, z alphadigit
|
||
|
| <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]* Rubout <A REL=DEFINITION HREF="26_glo_i.htm#invalid">invalid</A>
|
||
|
~ <A REL=DEFINITION HREF="26_glo_a.htm#alphabetic">alphabetic</A>[2]
|
||
|
|
||
|
|
||
|
</PRE>
|
||
|
<P><B>Figure 2-8. Constituent Traits of Standard Characters and Semi-Standard Characters</B></A> <P>
|
||
|
The interpretations in this table apply only to <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A> whose <A REL=DEFINITION HREF="26_glo_s.htm#syntax_type"><I>syntax type</I></A> is <A REL=DEFINITION HREF="26_glo_c.htm#constituent"><I>constituent</I></A>. Entries marked with an asterisk (*) are normally <I>shadowed</I>[2] because the indicated <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A> are of <A REL=DEFINITION HREF="26_glo_s.htm#syntax_type"><I>syntax type</I></A> <A REL=DEFINITION HREF="26_glo_w.htm#whitespace"><I>whitespace</I></A>[2], <A REL=DEFINITION HREF="26_glo_m.htm#macro_character"><I>macro character</I></A>, <A REL=DEFINITION HREF="26_glo_s.htm#single_escape"><I>single escape</I></A>, or <A REL=DEFINITION HREF="26_glo_m.htm#multiple_escape"><I>multiple escape</I></A>; these <A REL=DEFINITION HREF="26_glo_c.htm#constituent_trait"><I>constituent traits</I></A> apply to them only if their <A REL=DEFINITION HREF="26_glo_s.htm#syntax_type"><I>syntax types</I></A> are changed to <A REL=DEFINITION HREF="26_glo_c.htm#constituent"><I>constituent</I></A>. <P>
|
||
|
<HR>
|
||
|
|
||
|
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
|
||
|
|
||
|
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
|
||
|
</BODY>
|
||
|
</HTML>
|