1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
guile/module
Andy Wingo 5a0132b337 a different tack for syncase macro representation
* libguile/macros.c (macro_print): Show syntax-case bindings, if present.
  (macro_mark): Mark the extra two words if they're there.
  (scm_make_syncase_macro, scm_make_extended_syncase_macro): OK! A new
  take at the "how do we represent syncase macros in Guile" problem.
  Whereas we need a disjoint type, but would like it to be compatible
  with old predicates (e.g. `macro?'), and need to be able to extend
  existing syntax definitions (e.g. `cond'), let's add a bit to macros to
  indicate whether they have syncase macro bindings or not, and a fourth
  macro type for native syncase macros.
  (scm_macro_type): Return 'syntax-case for native syntax-case macros.
  Note that other macro types may have syntax-case bindings.
  (scm_macro_name): Return #f if the transformer is not a procedure.
  (scm_syncase_macro_type, scm_syncase_macro_binding): New accessors for
  the syncase macro bindings.

* libguile/macros.h: Add API for syncase macros.

* module/ice-9/boot-9.scm (module-define-keyword!): Adapt to use syncase
  macros, though they are not yet used. Reorder other syncase API.

* module/ice-9/psyntax.scm (chi-expr): Fix syntax-violation invocation.
2009-04-29 00:38:12 +02:00
..
ice-9 a different tack for syncase macro representation 2009-04-29 00:38:12 +02:00
language allow docstrings with internal definitions 2009-04-24 23:56:40 +02:00
oop syntax-object->datum => syntax->datum, likewise datum->syntax 2009-04-26 20:56:24 +02:00
scripts scripts take rest args 2009-04-20 18:20:01 +02:00
srfi ice-9 syncase now deprecated, woo 2009-04-24 14:34:23 +02:00
system ice-9 syncase now deprecated, woo 2009-04-24 14:34:23 +02:00
Makefile.am build ecmascript stuff last 2009-04-26 20:57:51 +02:00