X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Freadtable.lisp;h=597d8ce61987f7414ff36e6a499355d6563a8a15;hb=15d6e7c9a2c3234f95dfe278046fa2fee1b0c007;hp=03591694524fc4219fe3e9f7ce4f4fbfe20f016e;hpb=334af30b26555f0bf706f7157b399bdbd4fad548;p=sbcl.git diff --git a/src/code/readtable.lisp b/src/code/readtable.lisp index 0359169..597d8ce 100644 --- a/src/code/readtable.lisp +++ b/src/code/readtable.lisp @@ -16,19 +16,27 @@ ;;; constants for readtable character attributes. These are all as in ;;; the manual. -(defconstant +char-attr-whitespace+ 0) -(defconstant +char-attr-terminating-macro+ 1) -(defconstant +char-attr-escape+ 2) -(defconstant +char-attr-constituent+ 3) -(defconstant +char-attr-constituent-dot+ 4) -(defconstant +char-attr-constituent-expt+ 5) -(defconstant +char-attr-constituent-slash+ 6) -(defconstant +char-attr-constituent-digit+ 7) -(defconstant +char-attr-constituent-sign+ 8) -;; the "9" entry intentionally left blank for some reason -- WHN 19990806 -(defconstant +char-attr-multiple-escape+ 10) -(defconstant +char-attr-package-delimiter+ 11) -(defconstant +char-attr-delimiter+ 12) ; (a fake for READ-UNQUALIFIED-TOKEN) +(def!constant +char-attr-whitespace+ 0) +(def!constant +char-attr-terminating-macro+ 1) +(def!constant +char-attr-escape+ 2) +(def!constant +char-attr-constituent+ 3) +(def!constant +char-attr-constituent-dot+ 4) +(def!constant +char-attr-constituent-expt+ 5) +(def!constant +char-attr-constituent-slash+ 6) +(def!constant +char-attr-constituent-digit+ 7) +(def!constant +char-attr-constituent-sign+ 8) +;;; the following two are not static but depend on *READ-BASE*. +;;; DECIMAL-DIGIT is for characters being digits in base 10 but not in +;;; base *READ-BASE* (which is therefore perforce smaller than 10); +;;; DIGIT-OR-EXPT is for characters being both exponent markers and +;;; digits in base *READ-BASE* (which is therefore perforce larger +;;; than 10). -- CSR, 2004-03-16 +(def!constant +char-attr-constituent-decimal-digit+ 9) +(def!constant +char-attr-constituent-digit-or-expt+ 10) + +(def!constant +char-attr-multiple-escape+ 11) +(def!constant +char-attr-package-delimiter+ 12) +(def!constant +char-attr-delimiter+ 13) ; (a fake for READ-UNQUALIFIED-TOKEN) (sb!xc:defstruct (readtable (:conc-name nil) (:predicate readtablep)