X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Freadtable.lisp;h=a033074468fb718f4c48553eabf39639576e5490;hb=4255b37e50876702d2563f3418a44a3f5bf8a2e8;hp=615bc984a37f497b68f5f51291a76687c9ac7247;hpb=8d04349cceb4eb25c8782b0c68ed5ffaa60f7d20;p=sbcl.git diff --git a/src/code/readtable.lisp b/src/code/readtable.lisp index 615bc98..a033074 100644 --- a/src/code/readtable.lisp +++ b/src/code/readtable.lisp @@ -45,15 +45,15 @@ (def!constant +char-attr-delimiter+ 14) ; (a fake for READ-UNQUALIFIED-TOKEN) (sb!xc:defstruct (readtable (:conc-name nil) - (:predicate readtablep) - ;; ANSI requires a CL:COPY-READTABLE to do - ;; a deep copy, so the DEFSTRUCT-generated - ;; default is not suitable. - (:copier nil)) + (:predicate readtablep) + ;; ANSI requires a CL:COPY-READTABLE to do + ;; a deep copy, so the DEFSTRUCT-generated + ;; default is not suitable. + (:copier nil)) #!+sb-doc "A READTABLE is a data structure that maps characters into syntax types for the Common Lisp expression reader." - ;; The CHARACTER-ATTRIBUTE-TABLE is a vector of CHAR-CODE-LIMIT + ;; The CHARACTER-ATTRIBUTE-TABLE is a vector of BASE-CHAR-CODE-LIMIT ;; integers for describing the character type. Conceptually, there ;; are 4 distinct "primary" character attributes: ;; +CHAR-ATTR-WHITESPACE+, +CHAR-ATTR-TERMINATING-MACRO+, @@ -66,11 +66,11 @@ ;; constituents. (character-attribute-array (make-array base-char-code-limit - :element-type '(unsigned-byte 8) - :initial-element +char-attr-constituent+) + :element-type '(unsigned-byte 8) + :initial-element +char-attr-constituent+) :type attribute-table) (character-attribute-hash-table (make-hash-table) :type hash-table) - ;; The CHARACTER-MACRO-TABLE is a vector of CHAR-CODE-LIMIT + ;; The CHARACTER-MACRO-TABLE is a vector of BASE-CHAR-CODE-LIMIT ;; functions. One of these functions called with appropriate ;; arguments whenever any non-WHITESPACE character is encountered ;; inside READ-PRESERVING-WHITESPACE. These functions are used to @@ -80,7 +80,7 @@ (make-array base-char-code-limit :initial-element #'undefined-macro-char) :type (simple-vector #.base-char-code-limit)) (character-macro-hash-table (make-hash-table) :type hash-table) - ;; an alist from dispatch characters to vectors of CHAR-CODE-LIMIT - ;; functions, for use in defining dispatching macros (like #-macro) + ;; an alist from dispatch characters to hash-tables akin to + ;; CHARACTER-MACRO-HASH-TABLE. (dispatch-tables () :type list) - (readtable-case :upcase :type (member :upcase :downcase :preserve :invert))) + (%readtable-case :upcase :type (member :upcase :downcase :preserve :invert)))