]> birchwood-abbey.net Git - mit-scheme.git/commit
Rewrite datum label reading to support cyclical references.
authorChris Hanson <org/chris-hanson/cph>
Fri, 5 Nov 2021 06:02:38 +0000 (23:02 -0700)
committerChris Hanson <org/chris-hanson/cph>
Fri, 5 Nov 2021 06:02:38 +0000 (23:02 -0700)
commit09a5e00fa9c7d8cd3f1778587a84cef3c50fbd1d
tree46ea33cc75f1ce841ccc13a4f23a0cc74bed91f6
parent37cda50d684f4bda0a629ac10a0432d8b4aab31d
Rewrite datum label reading to support cyclical references.

This works fine in tests, but can't yet be used at the REPL.  For example,
evaluating

     '(a #1=(b . #1#))

goes into an infinite loop.  This is because the quote syntax calls
strip-syntactic-closures, which doesn't handle circularity right.  I'll rewrite
that soon.
src/runtime/reader.scm
tests/runtime/test-readwrite.scm