1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-25 20:50:31 +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 move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
arrays.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
boot-9.scm a different tack for syncase macro representation 2009-04-29 00:38:12 +02:00
buffered-input.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
calling.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
ChangeLog-2008 move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
channel.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
common-list.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
compile-psyntax.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
debug.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
debugger.scm repl.scm relies on `display-backtrace' to do everything, some naming tweaks 2008-12-26 18:07:20 +01:00
deprecated.scm Replace eval-case with eval-when 2009-03-06 13:29:13 +01:00
documentation.scm allow defmacros to have docstrings 2009-04-25 16:31:52 +02:00
emacs.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
expand-support.scm I ain't broke, but brother I'm badly bent 2009-04-23 11:25:22 +02:00
expect.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
format.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
ftw.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
gap-buffer.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
gds-client.scm Merge commit 'origin/master' into vm 2009-01-12 21:36:39 +01:00
gds-server.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
getopt-long.scm Replace eval-case with eval-when 2009-03-06 13:29:13 +01:00
hcons.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
history.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
i18n.scm Replace eval-case with eval-when 2009-03-06 13:29:13 +01:00
lineio.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
list.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
ls.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
mapping.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
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 move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
poe.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
popen.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
posix.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
pretty-print.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
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 move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
r4rs.scm make sure we compile boot code in (guile), not (guile-user) 2009-04-24 23:10:31 +02:00
r5rs.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
rdelim.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
README move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
receive.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
regex.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
runq.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
rw.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
safe-r5rs.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
safe.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
serialize.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
session.scm Merge commit '53d81399be' into vm-check 2009-03-17 15:59:40 +01:00
slib.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
stack-catch.scm repl.scm relies on `display-backtrace' to do everything, some naming tweaks 2008-12-26 18:07:20 +01:00
streams.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
string-fun.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
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 move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
threads.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
time.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00
weak-vector.scm move ice-9/ and oop/ under module/ 2008-11-01 12:44:21 +01:00

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