s-expressionists / Eclector

A portable Common Lisp reader that is highly customizable, can recover from errors and can return concrete syntax trees
https://s-expressionists.github.io/Eclector/
BSD 2-Clause "Simplified" License
108 stars 9 forks source link

Eclector doesn't do shit #25

Closed scymtym closed 6 years ago

scymtym commented 6 years ago

SBCL:

(princ (read (make-string-input-stream "#\\Pile_of_Poo")))
| 💩
#\PILE_OF_POO

Eclector:

(princ (eclector.reader:read (make-string-input-stream "#\\Pile_of_Poo")))
|- ECLECTOR.READER:UNKNOWN-CHARACTER-NAME

But seriously, the client should probably have control over character lookup. Maybe a generic function interpret-character-name in the spirit of interpret-symbol.