]> birchwood-abbey.net Git - mit-scheme.git/commit
Fix handling of dot token in reader.
authorChris Hanson <org/chris-hanson/cph>
Mon, 1 Nov 2021 06:17:02 +0000 (23:17 -0700)
committerChris Hanson <org/chris-hanson/cph>
Mon, 1 Nov 2021 06:17:02 +0000 (23:17 -0700)
commit784bf1f6e071e68213e949a7829dd8c8417b46e5
tree06c259394132fca126fe4024a21de621990a919b
parentdecf77e0284e47e5149cdc533ab1b4e527c82031
Fix handling of dot token in reader.

The reader was allowing the dot token to appear in places where it is illegal.
For example, it could be used in vectors, where it was treated as a symbol,
which is explicitly forbidden by R7RS.

I changed the reader to never convert the dot token to a symbol, and to only be
allowed in the list-parsing context.  This revealed that there was an instance
of a quoted dot in another file, which again is forbidden.

This change may break any code that depends on dot being a symbol.
src/runtime/reader.scm
src/runtime/structure-parser.scm