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

(read-from-string "#c ( #xF #o-1 ) ") not allowed in eclector #70

Closed kpoeck closed 3 years ago

kpoeck commented 3 years ago

Hello, looking at the spec in http://www.lispworks.com/documentation/HyperSpec/Body/02_dhk.htm it is simply said that:

C reads a following object, which must be a list of length two whose elements are both reals.

I don't see that "a following object" disallows the space.

See also: https://github.com/sharplispers/parse-number/issues/9

Would be fine If we just could customize eclector not to signal an exception here

scymtym commented 3 years ago

I agree that the description sounds as if whitespace is fine, but there are some unclear aspects:

So maybe the best solution is customizable behavior as you suggest.

scymtym commented 3 years ago

Also: https://irclog.tymoon.eu/freenode/sicl?around=1600324357#1600324357