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-CST produces inconsistent raw data when reading circular input #8

Closed marcoheisig closed 1 year ago

marcoheisig commented 6 years ago
(with-input-from-string (stream "#1=(#1#)")
    (eclector.concrete-syntax-tree:cst-read stream))

evaluates to a cst whose raw data is #1=(#1#), but whose FIRST cst has the raw data (t)

scymtym commented 1 year ago

Fixed in commit 77c9eb8d2e82c30104b04bca3144a7818af30168.