1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
guile/module/language
Ludovic Courtes b89fc2153e Slowly improving support for macro compilation.
* module/language/scheme/translate.scm (&current-macros): Removed.
  (&current-macro-module): Removed.
  (&compile-time-module): New.
  (eval-at-compile-time): New.
  (translate): Initialize `&compile-time-module'.
  (expand-macro)[use-syntax]: New case.
  [begin let...]: Don't expand these built-in macros.
  [else]: Rewrote the macro detection and invocation logic.  Invoke macro
  transformers in the current compile-time module.
  (trans): Let `expand-macro' raise an exception if needed.
  (trans-pair)[defmacro define-macro]: Evaluate the macro definition in
  the compile-time module.

* testsuite/t-match.scm: Use `use-syntax' instead of `use-modules' for
  `(ice-9 match)' and `(srfi srfi-9)'.

* testsuite/t-records.scm: Likewise.

git-archimport-id: lcourtes@laas.fr--2005-mobile/guile-vm--mobile--0.6--patch-15
2008-04-25 19:15:50 +02:00
..
elisp *** empty log message *** 2001-04-22 02:13:48 +00:00
ghil *** empty log message *** 2001-04-22 02:13:48 +00:00
r5rs *** empty log message *** 2001-04-22 02:13:48 +00:00
scheme Slowly improving support for macro compilation. 2008-04-25 19:15:50 +02:00
.cvsignore *** empty log message *** 2001-04-22 02:13:48 +00:00
Makefile.am Tried compiling more code; augmented the doc. 2008-04-25 19:09:30 +02:00