Add PRINT-OBJECT method for TOKEN-NAME
This commit is contained in:
parent
25fd7675d0
commit
ae39a48890
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ reading immediately. Should be a subset of *SPECIAL-TOKEN-CHARS*.")
|
|||
(defclass token-name (token)
|
||||
((%name :accessor name :initarg :text)))
|
||||
|
||||
(defmethod print-object ((object token-name) stream)
|
||||
(print-unreadable-object (object stream :type t :identity t)
|
||||
(when (slot-boundp object '%name)
|
||||
(format stream "\"~A\"" (name object)))))
|
||||
|
||||
(defclass token-number (token)
|
||||
((%value :accessor value :initarg :value)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue