mit-scheme.git
22 years agoModify CASE syntactic keyword to generate better code for tests.
Chris Hanson [Wed, 13 Feb 2002 01:04:13 +0000 (01:04 +0000)]
Modify CASE syntactic keyword to generate better code for tests.

22 years agoAdd descriptions of new environment operations.
Chris Hanson [Wed, 13 Feb 2002 01:00:56 +0000 (01:00 +0000)]
Add descriptions of new environment operations.

22 years agoAdd descriptions of new environment operations.
Chris Hanson [Tue, 12 Feb 2002 21:50:12 +0000 (21:50 +0000)]
Add descriptions of new environment operations.

22 years agoDon't signal error from ENVIRONMENT-LOOKUP-MACRO if name is unbound.
Chris Hanson [Tue, 12 Feb 2002 21:17:47 +0000 (21:17 +0000)]
Don't signal error from ENVIRONMENT-LOOKUP-MACRO if name is unbound.

22 years agoAdd aliases:
Chris Hanson [Tue, 12 Feb 2002 15:14:21 +0000 (15:14 +0000)]
Add aliases:

interpreter-environment?          => top-level-environment?
extend-interpreter-environment    => extend-top-level-environment
make-null-interpreter-environment => make-null-top-level-environment

22 years agoMake changes related to new syntax engine.
Chris Hanson [Tue, 12 Feb 2002 14:54:42 +0000 (14:54 +0000)]
Make changes related to new syntax engine.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Tue, 12 Feb 2002 05:58:16 +0000 (05:58 +0000)]
Eliminate non-hygienic macros.

22 years agoDon't close the identifier of a definition.
Chris Hanson [Tue, 12 Feb 2002 00:31:37 +0000 (00:31 +0000)]
Don't close the identifier of a definition.

22 years agoImplement REVERSE-SYNTACTIC-ENVIRONMENTS. Add bindings for
Chris Hanson [Tue, 12 Feb 2002 00:30:51 +0000 (00:30 +0000)]
Implement REVERSE-SYNTACTIC-ENVIRONMENTS.  Add bindings for
SYSTEM-GLOBAL-SYNTAX-TABLE and EXTEND-IC-ENVIRONMENT to ease upgrading.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Tue, 12 Feb 2002 00:29:16 +0000 (00:29 +0000)]
Eliminate non-hygienic macros.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Tue, 12 Feb 2002 00:26:34 +0000 (00:26 +0000)]
Eliminate non-hygienic macros.

22 years agoDon't close the identifier of a definition.
Chris Hanson [Sun, 10 Feb 2002 06:03:25 +0000 (06:03 +0000)]
Don't close the identifier of a definition.

22 years agoDon't close the identifier of a definition.
Chris Hanson [Sat, 9 Feb 2002 06:17:50 +0000 (06:17 +0000)]
Don't close the identifier of a definition.

22 years agoDon't close the identifier of a definition.
Chris Hanson [Sat, 9 Feb 2002 06:10:11 +0000 (06:10 +0000)]
Don't close the identifier of a definition.

22 years agoDon't close the identifier of a definition.
Chris Hanson [Sat, 9 Feb 2002 05:56:43 +0000 (05:56 +0000)]
Don't close the identifier of a definition.

22 years agoUse CLOSE-SYNTAX where possible.
Chris Hanson [Sat, 9 Feb 2002 05:43:15 +0000 (05:43 +0000)]
Use CLOSE-SYNTAX where possible.

22 years agoChange renaming algorithm to treat synthetic identifiers differently
Chris Hanson [Fri, 8 Feb 2002 17:31:58 +0000 (17:31 +0000)]
Change renaming algorithm to treat synthetic identifiers differently
from symbols.  The new algorithm implements an EQ?-isomorphic map
between identifiers and renamed symbols.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Fri, 8 Feb 2002 03:55:01 +0000 (03:55 +0000)]
Eliminate non-hygienic macros.

22 years agoEliminate instances of FALSE.
Chris Hanson [Fri, 8 Feb 2002 03:31:11 +0000 (03:31 +0000)]
Eliminate instances of FALSE.

22 years agoAdd missing macro imports.
Chris Hanson [Fri, 8 Feb 2002 03:15:10 +0000 (03:15 +0000)]
Add missing macro imports.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Fri, 8 Feb 2002 03:13:05 +0000 (03:13 +0000)]
Eliminate non-hygienic macros.

22 years agoFix error message in PARSE-MIT-LAMBDA-LIST.
Chris Hanson [Fri, 8 Feb 2002 03:01:54 +0000 (03:01 +0000)]
Fix error message in PARSE-MIT-LAMBDA-LIST.

22 years agoEliminate non-hygienic macros.
Chris Hanson [Thu, 7 Feb 2002 05:58:14 +0000 (05:58 +0000)]
Eliminate non-hygienic macros.

22 years agoAdd notes regarding anonymous macro transformers and the dual action
Chris Hanson [Tue, 5 Feb 2002 18:12:03 +0000 (18:12 +0000)]
Add notes regarding anonymous macro transformers and the dual action
of top-level define-syntax.

22 years agoFix bug: top-level syntax definition was being loaded into global
Chris Hanson [Tue, 5 Feb 2002 17:34:04 +0000 (17:34 +0000)]
Fix bug: top-level syntax definition was being loaded into global
environment.

22 years agoSecond draft of macro documentation includes section on explicit
Chris Hanson [Tue, 5 Feb 2002 05:28:55 +0000 (05:28 +0000)]
Second draft of macro documentation includes section on explicit
renaming, plus a bunch of fixes to previous draft.

22 years agoInitial draft of macro documentation.
Chris Hanson [Mon, 4 Feb 2002 21:50:16 +0000 (21:50 +0000)]
Initial draft of macro documentation.

22 years agoInitial draft of macro documentation.
Chris Hanson [Mon, 4 Feb 2002 21:49:22 +0000 (21:49 +0000)]
Initial draft of macro documentation.

22 years agoFix fatal bug in previous revision.
Chris Hanson [Mon, 4 Feb 2002 06:26:58 +0000 (06:26 +0000)]
Fix fatal bug in previous revision.

22 years agoUpdate version to reflect changes for new syntax engine.
Chris Hanson [Sun, 3 Feb 2002 04:42:26 +0000 (04:42 +0000)]
Update version to reflect changes for new syntax engine.

22 years agoMerge hygienic-macros branch into trunk.
Chris Hanson [Sun, 3 Feb 2002 03:38:58 +0000 (03:38 +0000)]
Merge hygienic-macros branch into trunk.

22 years agoUse SCHEME_COMPILER variable to allow end-user override.
Chris Hanson [Tue, 29 Jan 2002 20:49:56 +0000 (20:49 +0000)]
Use SCHEME_COMPILER variable to allow end-user override.

22 years agoUse SCHEME_COMPILER variable to allow end-user override.
Chris Hanson [Tue, 29 Jan 2002 20:43:14 +0000 (20:43 +0000)]
Use SCHEME_COMPILER variable to allow end-user override.

22 years agoUse SCHEME_COMPILER variable to allow end-user override.
Chris Hanson [Tue, 29 Jan 2002 20:32:34 +0000 (20:32 +0000)]
Use SCHEME_COMPILER variable to allow end-user override.

22 years agoIn socklen_t test, must include <sys/types.h> also.
Chris Hanson [Tue, 29 Jan 2002 06:12:55 +0000 (06:12 +0000)]
In socklen_t test, must include <sys/types.h> also.

22 years agoUndefine false and true prior to including <curses.h>, to work around
Chris Hanson [Tue, 29 Jan 2002 06:00:09 +0000 (06:00 +0000)]
Undefine false and true prior to including <curses.h>, to work around
bug in recent versions of ncurses.

22 years agoDon't use <stdbool.h>; it is incompatible with older versions of
Chris Hanson [Tue, 29 Jan 2002 05:57:24 +0000 (05:57 +0000)]
Don't use <stdbool.h>; it is incompatible with older versions of
ncurses.

22 years agoAdd shell script with environment variable that can be used to
Chris Hanson [Tue, 29 Jan 2002 05:16:57 +0000 (05:16 +0000)]
Add shell script with environment variable that can be used to
override the default Scheme compiler.

22 years agoFix problem: don't define true and false if <stdbool.h> exists,
Chris Hanson [Tue, 29 Jan 2002 04:59:03 +0000 (04:59 +0000)]
Fix problem: don't define true and false if <stdbool.h> exists,
because the GNU version of <stdbool.h> breaks in that case.  Instead
just use <stdbool.h> to make the definitions.

22 years agoAdd support for cut/paste to "clipboard", which seems to be new standard.
Chris Hanson [Tue, 29 Jan 2002 04:14:03 +0000 (04:14 +0000)]
Add support for cut/paste to "clipboard", which seems to be new standard.

22 years agoFix FSF address.
Chris Hanson [Tue, 29 Jan 2002 01:36:20 +0000 (01:36 +0000)]
Fix FSF address.

22 years agoUpdate release version to reflect that next release will be 7.7.0
Chris Hanson [Mon, 28 Jan 2002 20:24:00 +0000 (20:24 +0000)]
Update release version to reflect that next release will be 7.7.0
rather than 7.6.1.

22 years agoFix typo.
Chris Hanson [Sun, 27 Jan 2002 06:34:34 +0000 (06:34 +0000)]
Fix typo.

22 years agoFix bug: package name for SOS was wrong.
Chris Hanson [Tue, 22 Jan 2002 18:44:03 +0000 (18:44 +0000)]
Fix bug: package name for SOS was wrong.

22 years agoAdd note about Hal's suggestion to overload o to subsume M-o.
Chris Hanson [Sat, 12 Jan 2002 02:57:38 +0000 (02:57 +0000)]
Add note about Hal's suggestion to overload o to subsume M-o.

22 years agoMove runtime support for DEFINE-STRUCTURE into "record.scm", in order
Chris Hanson [Sat, 12 Jan 2002 02:56:35 +0000 (02:56 +0000)]
Move runtime support for DEFINE-STRUCTURE into "record.scm", in order
to simplify the boot sequence.  This allows "defstr.scm" to move late
into the boot sequence and to use the record abstraction without
complicated tricks.

22 years agoChange remaining "syntax-table" references to "environment". Delete
Chris Hanson [Wed, 9 Jan 2002 05:11:38 +0000 (05:11 +0000)]
Change remaining "syntax-table" references to "environment".  Delete
unused procedure SF/SET-FILE-SYNTAX-TABLE!.

22 years agoFix naming issue right (?).
Chris Hanson [Tue, 8 Jan 2002 05:06:46 +0000 (05:06 +0000)]
Fix naming issue right (?).

22 years agoIf reference trap has no name, print its number.
Chris Hanson [Tue, 8 Jan 2002 05:03:56 +0000 (05:03 +0000)]
If reference trap has no name, print its number.

22 years agoMust do reference-trap mapping when looking things up in compiled-code
Chris Hanson [Mon, 7 Jan 2002 05:01:33 +0000 (05:01 +0000)]
Must do reference-trap mapping when looking things up in compiled-code
environments.

22 years agoDon't ever list bindings for packages.
Chris Hanson [Mon, 7 Jan 2002 04:35:10 +0000 (04:35 +0000)]
Don't ever list bindings for packages.

22 years agoFix problem: only one of the places that prints bindings knew about
Chris Hanson [Mon, 7 Jan 2002 04:30:28 +0000 (04:30 +0000)]
Fix problem: only one of the places that prints bindings knew about
syntactic keywords.

22 years agoChange representation of reference trap to show kind name rather than
Chris Hanson [Mon, 7 Jan 2002 04:26:29 +0000 (04:26 +0000)]
Change representation of reference trap to show kind name rather than
number.

22 years agoUse new environment-abstraction design to clean up debugger access to
Chris Hanson [Mon, 7 Jan 2002 04:12:37 +0000 (04:12 +0000)]
Use new environment-abstraction design to clean up debugger access to
environments.

22 years agoRedesign way that macros are integrated into environments. Syntactic
Chris Hanson [Mon, 7 Jan 2002 03:38:47 +0000 (03:38 +0000)]
Redesign way that macros are integrated into environments.  Syntactic
keywords are now considered bound, but ordinary variable-reference
operations signal errors on those bindings; but each of the definition
operations can be used to modify either kind of binding.

New procedure ENVIRONMENT-DEFINABLE? can be used to determine if a
definition is allowed on a particular environment; currently it is
false on compiled-code environments.

New procedures ENVIRONMENT-REFERENCE-TYPE and ENVIRONMENT-SAFE-LOOKUP
provide very flexible mechanisms for determining what is contained in
an environment or binding without generating errors.

22 years agoHandle case where binding is a syntactic keyword.
Chris Hanson [Sat, 5 Jan 2002 06:16:04 +0000 (06:16 +0000)]
Handle case where binding is a syntactic keyword.

22 years agoRename ENVIRONMENT-WHICH-BINDS to ENVIRONMENT-THAT-BINDS.
Chris Hanson [Sat, 5 Jan 2002 06:15:10 +0000 (06:15 +0000)]
Rename ENVIRONMENT-WHICH-BINDS to ENVIRONMENT-THAT-BINDS.

22 years agoRename ENVIRONMENT-WHICH-BINDS to ENVIRONMENT-THAT-BINDS.
Chris Hanson [Sat, 5 Jan 2002 06:15:01 +0000 (06:15 +0000)]
Rename ENVIRONMENT-WHICH-BINDS to ENVIRONMENT-THAT-BINDS.

22 years agoDon't unparse environments specially.
Chris Hanson [Sat, 5 Jan 2002 05:57:56 +0000 (05:57 +0000)]
Don't unparse environments specially.

22 years agoNew procedure GUARANTEE-ENVIRONMENT.
Chris Hanson [Fri, 4 Jan 2002 06:05:21 +0000 (06:05 +0000)]
New procedure GUARANTEE-ENVIRONMENT.

22 years agoOops... last revision deleted a little too much.
Chris Hanson [Sat, 29 Dec 2001 04:16:32 +0000 (04:16 +0000)]
Oops... last revision deleted a little too much.

22 years agoEliminate deep-binding FLUID-LET.
Chris Hanson [Mon, 24 Dec 2001 04:21:50 +0000 (04:21 +0000)]
Eliminate deep-binding FLUID-LET.

22 years agoEliminate references to UNASSIGNED?.
Chris Hanson [Mon, 24 Dec 2001 04:18:01 +0000 (04:18 +0000)]
Eliminate references to UNASSIGNED?.

22 years agoFix missing string line terminators.
Chris Hanson [Sun, 23 Dec 2001 18:33:08 +0000 (18:33 +0000)]
Fix missing string line terminators.

22 years agoFix missing string line terminators.
Chris Hanson [Sun, 23 Dec 2001 18:28:52 +0000 (18:28 +0000)]
Fix missing string line terminators.

22 years agoEliminate all references to SYNTAX-TABLE/DEFINE. Wrap all macros with
Chris Hanson [Sun, 23 Dec 2001 17:21:00 +0000 (17:21 +0000)]
Eliminate all references to SYNTAX-TABLE/DEFINE.  Wrap all macros with
new procedure NON-HYGIENIC-MACRO-TRANSFORMER; this will serve as a
marker for identifying macros that need to be rewritten.

22 years agoStore macro definitions in environments rather than in syntax tables.
Chris Hanson [Sat, 22 Dec 2001 04:00:39 +0000 (04:00 +0000)]
Store macro definitions in environments rather than in syntax tables.

22 years agoStore macro definitions in environments rather than in syntax tables.
Chris Hanson [Sat, 22 Dec 2001 03:21:44 +0000 (03:21 +0000)]
Store macro definitions in environments rather than in syntax tables.

22 years agoFix problem: DEFINE-SYNTAX was expanding into a fixed reference trap
Chris Hanson [Sat, 22 Dec 2001 03:19:19 +0000 (03:19 +0000)]
Fix problem: DEFINE-SYNTAX was expanding into a fixed reference trap
in which the SCode lambda was inserted; it must instead expand into an
expression that evaluates the lambda and wraps it in a reference trap.

22 years agoStore macro definitions in environments rather than in syntax tables.
Chris Hanson [Fri, 21 Dec 2001 18:41:22 +0000 (18:41 +0000)]
Store macro definitions in environments rather than in syntax tables.

22 years agoEliminate reference to SYNTAX-TABLE?.
Chris Hanson [Fri, 21 Dec 2001 18:32:11 +0000 (18:32 +0000)]
Eliminate reference to SYNTAX-TABLE?.

22 years agoEliminate reference to GUARANTEE-SYNTAX-TABLE.
Chris Hanson [Fri, 21 Dec 2001 18:31:11 +0000 (18:31 +0000)]
Eliminate reference to GUARANTEE-SYNTAX-TABLE.

22 years agoStore macro definitions in environments rather than in syntax tables.
Chris Hanson [Fri, 21 Dec 2001 18:28:31 +0000 (18:28 +0000)]
Store macro definitions in environments rather than in syntax tables.

22 years agoEliminate references to MAKE-SYNTAX-TABLE.
Chris Hanson [Fri, 21 Dec 2001 18:27:27 +0000 (18:27 +0000)]
Eliminate references to MAKE-SYNTAX-TABLE.

22 years agoStore macro definitions in environments rather than in syntax tables.
Chris Hanson [Fri, 21 Dec 2001 18:22:57 +0000 (18:22 +0000)]
Store macro definitions in environments rather than in syntax tables.

22 years agoFix bug: looking up a macro returns the trap, not the transformer.
Chris Hanson [Fri, 21 Dec 2001 18:18:21 +0000 (18:18 +0000)]
Fix bug: looking up a macro returns the trap, not the transformer.

22 years agoChange DEFINE-SYNTAX so that it emits code to define the macro at run
Chris Hanson [Fri, 21 Dec 2001 05:18:22 +0000 (05:18 +0000)]
Change DEFINE-SYNTAX so that it emits code to define the macro at run
time when written at top level.

22 years agoImplement support for storing macro transformers in environments.
Chris Hanson [Fri, 21 Dec 2001 04:37:56 +0000 (04:37 +0000)]
Implement support for storing macro transformers in environments.

22 years agoFix problem: this file was being syntaxed in the (RUNTIME) package but
Chris Hanson [Fri, 21 Dec 2001 01:57:19 +0000 (01:57 +0000)]
Fix problem: this file was being syntaxed in the (RUNTIME) package but
loaded into the () package; it needed on the macros in (RUNTIME).
Also add this file to the package description, so that its bindings
are visible.

22 years agoFix comment.
Chris Hanson [Fri, 21 Dec 2001 01:53:29 +0000 (01:53 +0000)]
Fix comment.

22 years agoEliminate MACRO special form.
Chris Hanson [Thu, 20 Dec 2001 21:46:10 +0000 (21:46 +0000)]
Eliminate MACRO special form.

22 years agoEliminate MACRO special form.
Chris Hanson [Thu, 20 Dec 2001 21:29:22 +0000 (21:29 +0000)]
Eliminate MACRO special form.

22 years agoEliminate references to THE-ENVIRONMENT.
Chris Hanson [Thu, 20 Dec 2001 21:20:40 +0000 (21:20 +0000)]
Eliminate references to THE-ENVIRONMENT.

22 years agoEliminate DEFINE-MACRO special form.
Chris Hanson [Thu, 20 Dec 2001 20:51:16 +0000 (20:51 +0000)]
Eliminate DEFINE-MACRO special form.

22 years agoEliminate definition of SCODE-QUOTE.
Chris Hanson [Thu, 20 Dec 2001 20:38:29 +0000 (20:38 +0000)]
Eliminate definition of SCODE-QUOTE.

22 years agoFix over-long lines.
Chris Hanson [Thu, 20 Dec 2001 20:32:02 +0000 (20:32 +0000)]
Fix over-long lines.

22 years agoEliminate references to THE-ENVIRONMENT.
Chris Hanson [Thu, 20 Dec 2001 18:56:59 +0000 (18:56 +0000)]
Eliminate references to THE-ENVIRONMENT.

22 years agoEliminate references to THE-ENVIRONMENT.
Chris Hanson [Thu, 20 Dec 2001 18:48:55 +0000 (18:48 +0000)]
Eliminate references to THE-ENVIRONMENT.

22 years agoEliminate references to MAKE-ENVIRONMENT.
Chris Hanson [Thu, 20 Dec 2001 18:06:22 +0000 (18:06 +0000)]
Eliminate references to MAKE-ENVIRONMENT.

22 years agoEliminate IN-PACKAGE and USING-SYNTAX special forms.
Chris Hanson [Thu, 20 Dec 2001 16:28:23 +0000 (16:28 +0000)]
Eliminate IN-PACKAGE and USING-SYNTAX special forms.

22 years agoEliminate IN-PACKAGE and USING-SYNTAX special forms.
Chris Hanson [Thu, 20 Dec 2001 16:13:19 +0000 (16:13 +0000)]
Eliminate IN-PACKAGE and USING-SYNTAX special forms.

22 years agoEliminate references to SYNTAX-TABLE-DEFINE and SYNTAX-TABLE-REF.
Chris Hanson [Thu, 20 Dec 2001 06:52:49 +0000 (06:52 +0000)]
Eliminate references to SYNTAX-TABLE-DEFINE and SYNTAX-TABLE-REF.

22 years agoEliminate references to SYSTEM-GLOBAL-SYNTAX-TABLE.
Chris Hanson [Thu, 20 Dec 2001 06:49:28 +0000 (06:49 +0000)]
Eliminate references to SYSTEM-GLOBAL-SYNTAX-TABLE.

22 years agoEliminate references to SYSTEM-GLOBAL-SYNTAX-TABLE.
Chris Hanson [Thu, 20 Dec 2001 06:21:45 +0000 (06:21 +0000)]
Eliminate references to SYSTEM-GLOBAL-SYNTAX-TABLE.

22 years agoFix bug: compiler was being syntaxed in wrong environment.
Chris Hanson [Thu, 20 Dec 2001 05:04:28 +0000 (05:04 +0000)]
Fix bug: compiler was being syntaxed in wrong environment.

22 years agoFix missing bindings for UCODE-PRIMITIVE and UCODE-TYPE.
Chris Hanson [Thu, 20 Dec 2001 04:14:49 +0000 (04:14 +0000)]
Fix missing bindings for UCODE-PRIMITIVE and UCODE-TYPE.

22 years agoFix problem caused by SCode-manipulating macro being closed in
Chris Hanson [Thu, 20 Dec 2001 03:48:45 +0000 (03:48 +0000)]
Fix problem caused by SCode-manipulating macro being closed in
compiler environment.

22 years agoFix problem caused by SCode-manipulating macro being closed in
Chris Hanson [Thu, 20 Dec 2001 03:46:57 +0000 (03:46 +0000)]
Fix problem caused by SCode-manipulating macro being closed in
compiler environment.

22 years agoFix dangling reference to SF/SET-DEFAULT-SYNTAX-TABLE!.
Chris Hanson [Thu, 20 Dec 2001 03:35:56 +0000 (03:35 +0000)]
Fix dangling reference to SF/SET-DEFAULT-SYNTAX-TABLE!.

22 years agoEliminate references to SYNTAX-TABLE/SYSTEM-INTERNAL.
Chris Hanson [Thu, 20 Dec 2001 03:27:54 +0000 (03:27 +0000)]
Eliminate references to SYNTAX-TABLE/SYSTEM-INTERNAL.