ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   2 Syntax   2.1 Character Syntax   2.1.4 Character Syntax Types

2.1.4.2 Constituent Traits

Every character has one or more constituent traits that define how the character is to be interpreted by the Lisp reader when the character is a constituent character. These constituent traits are alphabetic2, digit, package marker, plus sign, minus sign, dot, decimal point, ratio marker, exponent marker, and invalid. Figure 2.1.4.2 Constituent Traits shows the constituent traits of the standard characters and of certain semi-standard characters; no mechanism is provided for changing the constituent trait of a character. Any character with the alphadigit constituent trait in that figure is a digit if the current input base is greater than that character's digit value, otherwise the character is alphabetic2. Any character quoted by a single escape is treated as an alphabetic2 constituent, regardless of its normal syntax.

constituent
character
traitsconstituent
character
traits
Backspaceinvalid{alphabetic2
Tabinvalid*}alphabetic2
Newlineinvalid*+alphabetic2, plus sign
Linefeedinvalid*-alphabetic2, minus sign
Pageinvalid*.alphabetic2, dot, decimal point
Returninvalid*/alphabetic2, ratio marker
Spaceinvalid*A, aalphadigit
! alphabetic2B, balphadigit
"alphabetic2*C, calphadigit
#alphabetic2*D, dalphadigit, double-float exponent marker
$alphabetic2E, ealphadigit, float exponent marker
%alphabetic2F, falphadigit, single-float exponent marker
&alphabetic2G, galphadigit
'alphabetic2*H, halphadigit
(alphabetic2*I, ialphadigit
)alphabetic2*J, jalphadigit
*alphabetic2K, kalphadigit
,alphabetic2*L, lalphadigit, long-float exponent marker
0-9alphadigitM, malphadigit
package markerN, nalphadigit
;alphabetic2*O, oalphadigit
<alphabetic2P, palphadigit
=alphabetic2Q, qalphadigit
>alphabetic2R, ralphadigit
?alphabetic2S, salphadigit, short-float exponent marker
@alphabetic2T, talphadigit
]alphabetic2U, ualphadigit
\alphabetic2*V, valphadigit
[alphabetic2W, walphadigit
^alphabetic2X, xalphadigit
_alphabetic2Y, yalphadigit
`alphabetic2*Z, zalphadigit
|alphabetic2*Ruboutinvalid
~alphabetic2  
Constituent Traits of Standard Characters and Semi-Standard Characters

The interpretations in this table apply only to characters whose syntax type is constituent. Entries marked with an asterisk (*) are normally shadowed2 because the indicated characters are of syntax type whitespace2, macro character, single escape, or multiple escape; these constituent traits apply to them only if their syntax types are changed to constituent.


Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2012 - File last updated 02-24-2012