1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-03 18:50:19 +02:00
guile/module/ice-9
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
..
debugger merge ice-9, srfi, oop makfiles into module makefile 2009-04-24 19:40:55 +02:00
debugging merge ice-9, srfi, oop makfiles into module makefile 2009-04-24 19:40:55 +02:00
and-let-star.scm
arrays.scm
boot-9.scm a different tack for syncase macro representation 2009-04-29 00:38:12 +02:00
buffered-input.scm
calling.scm
ChangeLog-2008
channel.scm
common-list.scm
compile-psyntax.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
debug.scm
debugger.scm
deprecated.scm
documentation.scm allow defmacros to have docstrings 2009-04-25 16:31:52 +02:00
emacs.scm
expand-support.scm I ain't broke, but brother I'm badly bent 2009-04-23 11:25:22 +02:00
expect.scm
format.scm
ftw.scm
gap-buffer.scm
gds-client.scm
gds-server.scm
getopt-long.scm
hcons.scm
history.scm
i18n.scm
lineio.scm
list.scm
ls.scm
mapping.scm
match.scm fix bad syntax in define-macro, (ice-9 match), and (oop goops) 2009-04-25 12:50:53 +02:00
networking.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
null.scm ice-9 syncase now deprecated, woo 2009-04-24 14:34:23 +02:00
occam-channel.scm ice-9 syncase now deprecated, woo 2009-04-24 14:34:23 +02:00
optargs.scm
poe.scm
popen.scm
posix.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
pretty-print.scm
psyntax-pp.scm a different tack for syncase macro representation 2009-04-29 00:38:12 +02:00
psyntax.scm a different tack for syncase macro representation 2009-04-29 00:38:12 +02:00
q.scm
r4rs.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
r5rs.scm
rdelim.scm
README
receive.scm
regex.scm
runq.scm
rw.scm
safe-r5rs.scm
safe.scm
serialize.scm
session.scm
slib.scm
stack-catch.scm
streams.scm
string-fun.scm
syncase.scm syncase early in boot-9, defmacros in terms of syntax-case -- halfway working 2009-04-24 14:20:30 +02:00
test.scm
threads.scm
time.scm
weak-vector.scm

This directory contains various bits of Guile Scheme code.
Most of these are packaged as modules, with foo.scm implementing
the module `(ice-9 foo)'.

The non-module files are:

boot-9.scm	-- loaded on guile startup
		   implements module system + lots of other stuff
arrays.scm	-- loaded by boot-9.scm
networking.scm	-- loaded by boot-9.scm
posix.scm	-- loaded by boot-9.scm
r4rs.scm	-- loaded by boot-9.scm