Reimplement the mechanism that is used to determine when
authorChris Hanson <org/chris-hanson/cph>
Wed, 30 Mar 2005 03:53:06 +0000 (03:53 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 30 Mar 2005 03:53:06 +0000 (03:53 +0000)
commit908ba96d35d03c0bf1012d80010e5d8cecbc3b50
tree2e84390edbdc6bbc5a2830f9d80f80e20e6495e1
parenta27597cbd6bb8edc1dc36652460cd39c8698b84b
Reimplement the mechanism that is used to determine when
canonicalization of symbols takes effect.  In the new mechanism, calls
to the parser can optionally supply an environment in place of the
parser table that could previously be given, and the variable
*PARSER-CANONICALIZE-SYMBOLS?* is looked up in that environment.  The
environment defaults to the nearest REPL environment.  This causes
canonicalization to be effect in environments that specify it, and not
in other environments.

In addition, the other parser parameters were changed to use this same
model, including the parser table.  Likewise, the unparser table is
now managed this way, and callers of the unparser may supply an
environment in place of the previously accepted unparser table.  (The
unparser needs a rewrite, though, so no further changes were made to
it.)
13 files changed:
v7/src/6001/make.scm
v7/src/edwin/autold.scm
v7/src/edwin/schmod.scm
v7/src/runtime/input.scm
v7/src/runtime/load.scm
v7/src/runtime/option.scm
v7/src/runtime/output.scm
v7/src/runtime/parse.scm
v7/src/runtime/partab.scm
v7/src/runtime/pp.scm
v7/src/runtime/runtime.pkg
v7/src/runtime/unpars.scm
v7/src/sicp/studen.scm