sunterlib/s48/srfi-10
Anthony Carrico 02699e0409 Add script to change install lib version from 1.2.0 to 1.3.0, and make that change. THIS IS UNTESTED. I have no idea if packages need further changes for 1.3.0. 2012-01-16 03:06:42 +00:00
..
test
AUTHORS
BLURB
NEWS Fix up mismatched versions. 2005-07-08 01:29:30 +00:00
README
packages.scm
pkg-def.scm Add script to change install lib version from 1.2.0 to 1.3.0, and make that change. THIS IS UNTESTED. I have no idea if packages need further changes for 1.3.0. 2012-01-16 03:06:42 +00:00
srfi-10.scm

README

The SRFI-10 structure defines an octothorpe reader syntax, comma, as specified
in SRFI 10.  It also defines a procedure, DEFINE-READER-CONSTRUCTOR, for user-
defined reader constructors.

(DEFINE-READER-CONSTRUCTOR <symbol> <procedure>) -> unspecific       ;procedure
  Define SYMBOL to be a reader constructor, calling PROCEDURE at read-time;
  that is, for any instances of #,(SYMBOL <arg> ...), PROCEDURE will be applied
  to the arguments ARG ....

The test/ directory contains a couple of examples.  A structure whose name is
of the form SRFI-10-TEST/<foo> corresponds to test/<foo>.scm.

This implementation of SRFI 10 is not perfect: it will give errors regarding
invalid data in quotations if your reader constructors construct anything that
isn't an S-expression, and all that's only if you quote those; if you don't
quote the things, you'll get even worse errors.

There is one built-in reader constructor:

#,(DEFINE-READER-CONSTRUCTOR <name> <procedure-expression>) ;reader constructor
  Just like the DEFINE-READER-CONSTRUCTOR procedure, except that NAME must be a
  literal symbol, and this operates at read-time.  PROCEDURE-EXPRESSION will be
  evaluated in the what interaction environment is in state during read-time.