sunterlib/s48/srfi-10
Anthony Carrico b6af6f686f Use install lib version 1.2.0. 2005-07-08 02:12:13 +00:00
..
test Forgot to put the 'This file is part of Sunterlib' message at the top of the SRFI 10 test files -- not that those two files are that significant, of course 2004-01-16 15:42:03 +00:00
AUTHORS Changed to new package system. 2004-03-10 18:23:48 +00:00
BLURB Fixed format. 2004-04-19 02:33:22 +00:00
NEWS Fix up mismatched versions. 2005-07-08 01:29:30 +00:00
README Added basic SRFI 10 implementation 2004-01-16 15:37:46 +00:00
packages.scm Moved package and interface definition to packages.scm. Generate load scripts. 2004-03-14 22:59:57 +00:00
pkg-def.scm Use install lib version 1.2.0. 2005-07-08 02:12:13 +00:00
srfi-10.scm Added basic SRFI 10 implementation 2004-01-16 15:37:46 +00:00

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.