-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
documentationSomething should be documentedSomething should be documented
Description
When using parse-result, the symbol quote does not appear as a child of the expression when using the single-quote reader macro.
Minimal example:
(defclass trivial-parse-result (eclector.parse-result:parse-result-client) ())
(defmethod eclector.parse-result:make-expression-result
((client trivial-parse-result) result children source)
(list :result result :children children))
If you write out quote you get one result:
(eclector.parse-result:read-from-string (make-instance 'trivial-parse-result)
"(quote nil)")
=> ((:RESULT 'NIL :CHILDREN
((:RESULT QUOTE :CHILDREN NIL) (:RESULT NIL :CHILDREN NIL))))
But if you use a single quote you get a different result:
(eclector.parse-result:read-from-string (make-instance 'trivial-parse-result)
"'nil")
=> (:RESULT 'NIL :CHILDREN ((:RESULT NIL :CHILDREN NIL)))
Metadata
Metadata
Assignees
Labels
documentationSomething should be documentedSomething should be documented