add separate expansion phase, to detwingle things a bit
authorAndy Wingo <wingo@pobox.com>
Mon, 2 Mar 2009 16:27:45 +0000 (17:27 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 2 Mar 2009 16:27:45 +0000 (17:27 +0100)
commit237f96e7f0c3409ecaf427010048ad60b34b2e54
treea56eda9fb10d00ac4c13beed48788cc0f94280e4
parentfb0a63e879117661175e37fd42c089ee25cadf34
add separate expansion phase, to detwingle things a bit

* module/language/scheme/expand.scm: New module, implements a separate
  expansion phase, not interleaved with compilation.

* module/language/scheme/amatch.scm: Helper for expand.scm, it's pmatch
  with support for annotated source.

* module/ice-9/Makefile.am (SOURCES): Add annotate.scm to build list --
  early on because it will be used in the compiler.

* module/ice-9/annotate.scm: Fix the printer, default to unstripped
  (whatever that is), and add a deannotator.

* module/system/base/compile.scm (call-with-compile-error-catch): Fix for
  new representation of source locations.

* module/Makefile.am (SCHEME_LANG_SOURCES): Add amatch and expand.
module/Makefile.am
module/ice-9/Makefile.am
module/ice-9/annotate.scm
module/language/scheme/amatch.scm [new file with mode: 0644]
module/language/scheme/expand.scm [new file with mode: 0644]
module/system/base/compile.scm