Commit Graph

43 Commits

Author SHA1 Message Date
sperber 20b65e6bfa Make dynamic sub-regexps of regexps involving repetition work. 2002-10-30 12:13:20 +00:00
sperber a8ad3e0c71 Cater to dynamic subforms of SUBMATCH. 2002-10-29 15:57:00 +00:00
sperber 938182d4b1 Fix the most obvious insanities that's to do with dynamic parts of the
RX syntax.  Namely, a lot of code (used to) assume(s) that the
total-number-of-submatches (TSM) quantity is static even for dynamic
regexps.

Specifically, RE-TSM now returns an unspecific value instead of 0 for
non-regexps which should break most of the code that used to just
silently do the wrong thing.  It's likely that more examples involving
dynamic sub-regexps will fail.

In the process, I also removed some of Olin's naming craziness (using
"%" signs to convey meaning) which I needed to do to halfway
understand what's going on.
2002-09-23 12:59:28 +00:00
sperber 8ebe0fe3f8 Obsolete. 2002-08-14 14:47:38 +00:00
sperber 09db2fed71 Remove a bunch of crud from utilities.scm as well as the dependencies
upon that crud.
2002-08-14 14:45:33 +00:00
sperber 7f1879b497 Remove the old LIST-LIB, STRING-LIB, and CHAR-SET-LIB libraries, now
that the corresponding SRFIs are in the Scheme 48 core.

All this hopefully preserving backwards compatibility.
2002-08-14 14:23:41 +00:00
mainzelm f172795016 Pass start argument of cre-search? to regexp-match. 2002-08-05 14:22:11 +00:00
mainzelm f5d958ac91 Added { and } to the characters to be quoted within literal strings. 2002-05-02 11:46:44 +00:00
mainzelm 0a8e312756 Compare symbols non-hygienic as well to support SREs within hygienic
macros.
2002-04-18 16:06:02 +00:00
sperber de0de38bb6 Remove obsolete comment about START argument to CRE-SEARCH not being
supported.
2002-02-22 10:27:07 +00:00
sperber 68aa82c4e7 Remove superfluous END-VEC parameter to CRE-SEARCH. 2002-02-22 10:25:42 +00:00
sperber dce89b2fa8 Translate submatches according to CRE:TVEC, fixing submatch bug
reported by Michel Schinz.
2002-02-22 10:22:38 +00:00
sperber 64cdef6fc7 Fix infinite recursion bug in HACK-BRACKET-SPEC:
The LOOSE and RANGES lists weren't getting sorted in the fixpoint
comparison.
2002-02-21 13:44:47 +00:00
sperber d77257ae6b More pervasive fix for ASCII NUL problem. 2002-02-16 18:04:49 +00:00
sperber 1f5b157c1d Omit ASCII NUL from control character set. 2002-02-16 17:46:09 +00:00
sperber a03bc65f4e Remove BOW/EOW and WORD/WORD+ as they are not in POSIX, not supported
by a number of platforms, and their meaning is locale-dependent.
2002-02-16 16:57:25 +00:00
mainzelm b92828ec10 Temporay (non-)fix for any. 2001-10-05 09:56:12 +00:00
mainzelm 6f9f0c34e2 Exported nonl-chars to rx-syntax to fix (rx nonl). 2001-10-05 09:48:26 +00:00
mainzelm 2359057f89 Fixed broken cre-search? interface. 2001-10-05 08:27:26 +00:00
mainzelm a6320a93a9 Fixed bug in uncase that prevented uncase from being pushed into submatches. 2001-10-02 17:29:48 +00:00
sperber 7633b231be Fix broken MATCH:END. 2001-10-01 15:19:08 +00:00
mainzelm a979e61ec1 Hygienic comparison for symbols. 2001-10-01 14:49:30 +00:00
mainzelm 8e233fbf1c Added missing export of regexp-fold-right. 2001-09-20 13:29:17 +00:00
mainzelm b4bfd0f96c No need to load define-foreign any more. 2001-09-12 13:57:37 +00:00
sperber 00dbd6868f Obsolete. 2001-08-09 13:56:57 +00:00
sperber 6213213e14 Use Scheme 48 regexp code instead of ours. 2001-08-09 13:53:18 +00:00
sperber 34c5cd67bd From Scheme 48 0.57, extended by an optional START parameter for
REGEXP-MATCH.
2001-08-09 13:50:32 +00:00
sperber e6a7699ef4 Bug fix for [...-] regexps. 2001-07-10 11:23:00 +00:00
sperber bae809c6ab Correct types for MATCH:START, MATCH:END, and MATCH:SUBSTRING. 2001-07-07 18:50:19 +00:00
mainzelm 0ffb123bee Rest of Olins merge for SRFI-13 and 14. 2001-03-23 10:52:09 +00:00
olin-shivers 5e769973cd Fixed a bug in re-dsm. It pushed a pre-dsm value inside a submatch record --
but the submatch pre-dsm field describes deleted submatches occuring *after*
the indicated submatch and *before* the submatch's body. So this
"simplification" was swapping the order of these deleted submatches with
the live submatch, throwing off the ordering.
    -Olin
2001-03-07 16:46:09 +00:00
mainzelm 820a2cfd5d No longer needed in new FFI 2001-01-01 17:59:26 +00:00
mainzelm 1ea7c8604e Ported to new FFI. 2001-01-01 17:19:55 +00:00
mainzelm 830f323166 Replaced error with warn. The problem itself remains. 2000-10-19 08:22:37 +00:00
marting 99ab68d3d9 From the scsh rep:
date: 2000/02/15 15:49:13;  author: shivers;  state: Exp;  lines: +38 -13
A couple of release problems, no real code bugs.
- The LET-MATCH, IF-MATCH, MATCH-COND macros weren't exported,
  and the source wasn't even loaded.
- Similarly, the entire SRE-SYNTAX-TOOLS package wasn't exported.
- The SIMPLIFY-REGEXP proc wasn't exported.

I hacked packages.scm to do the right package defining & exporting.
I also renamed let-match.scm to re-match-syntax.scm and moved the enclosing
module code from the file over to packages.scm.
    -Olin
2000-08-28 12:43:27 +00:00
marting 1d4d7d0e0c snapshot, this version should work quite well 1999-10-08 18:41:05 +00:00
marting de5a415580 TRANSLATE-SEQ wasn't correctly accounting for submatches. The same bug occurred in a parallel position in TRANSLATE-CHOICE; when I fixed it there, I neglected to fix TRANSLATE-SEQ as well. Olin 1999-10-08 18:12:00 +00:00
marting 38dd943bf7 added primitives for add-finalizer! 1999-10-08 14:11:52 +00:00
marting 9d1a3926a4 added finalizer for cre 1999-10-08 13:16:35 +00:00
marting dbf3e322eb Fixed bug in the definition of re-nonl. Olin 1999-10-05 18:46:00 +00:00
marting bca77db078 daily snapshot, mainly changes to get 0.5.2 stuff running 1999-09-24 23:54:22 +00:00
marting 0f0fe9f2ff updates from 0.5.2 1999-09-23 17:46:46 +00:00
marting c9f54e79da new from 0.5.2 1999-09-23 14:27:41 +00:00