1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-13 17:20:21 +02:00
guile/module/language/scheme
Andy Wingo 20bdc71054 add `compile-time-environment'
* ice-9/boot-9.scm (compile-time-environment): New function, with
  documentation. The trick is that the compiler recognizes calls to
  (compile-time-environment) and replaces it with a representation of the
  *available* lexicals. Note that this might not be all the lexicals;
  only the heap-allocated ones are returned.

* module/language/scheme/translate.scm (custom-transformer-table):
  Compile `compile-time-environment' to <ghil-reified-env>.

* module/system/il/compile.scm (codegen): Add <ghil-reified-env> clause,
  which calls ghil-env-reify.

* module/system/il/ghil.scm (ghil-env-reify): New procedure, returns a
  list of (NAME . EXTERNAL-INDEX).
  (<ghil>): Add <ghil-reified-env> object.
2008-10-25 22:58:48 +02:00
..
.cvsignore *** empty log message *** 2001-04-22 02:13:48 +00:00
Makefile.am module compilation fixen, post-integration 2008-08-25 13:05:16 -07:00
spec.scm sundries: side effects in interpreted repl, wrong-num-args in vm, self-checks 2008-10-09 12:17:51 +02:00
translate.scm add `compile-time-environment' 2008-10-25 22:58:48 +02:00