1
TinyScheme RE (Regular Expressions) extension
2
---------------------------------------------
3
Version 1.2, August 2002
5
The bulk of this directory is the regular expression library written
6
by Henry Spencer (see file README and COPYRIGHT).
8
Two files were added to produce the TinyScheme regular expression
9
library, re.so: re.c and re.makefile. The included re.makefile was contributed
10
initially by Stephen Gildea and should be adaptable to all Unix systems.
12
The makefile produces a DLL named re.so. For now, it contains just
13
a single foreign function (re-match <pattern> <string>). It returns
14
true (string matches pattern) or false. If it is called with an
15
extra parameter, which should be a vector, overwrites as many elements
16
of the vector as needed with the strings that matched the corresponding
17
parenthesized subexpressions inside <pattern>.
19
It is not fully tested, so use with caution.
21
Load the extension from inside TinyScheme using
22
(load-extension "re/re")
23
assuming that re.so is in the directory "re".
25
Load "re.scm" if you wish to use v.1.1 behavior.