1 diff -ur a/irregex-core.scm b/irregex-core.scm
2 --- a/irregex-core.scm 2016-09-11 19:03:00.000000000 -0400
3 +++ b/irregex-core.scm 2017-01-01 22:24:08.000000000 -0500
6 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8 +;; 0.9.6: 2016/12/05 - fixed exponential memory use of + in compilation
9 +;; of backtracking matcher.
10 ;; 0.9.5: 2016/09/10 - fixed a bug in irregex-fold handling of bow
11 ;; 0.9.4: 2015/12/14 - performance improvement for {n,m} matches
12 ;; 0.9.3: 2014/07/01 - R7RS library
13 @@ -3170,16 +3172,7 @@
14 ((sre-empty? (sre-sequence (cdr sre)))
15 (error "invalid sre: empty *" sre))
19 - (lp (sre-sequence (cdr sre))
22 - (lambda (cnk init src str i end matches fail)
23 - (body cnk init src str i end matches
25 - (next cnk init src str i end matches fail)
27 + (let ((body (rec (list '+ (sre-sequence (cdr sre))))))
28 (lambda (cnk init src str i end matches fail)
29 (body cnk init src str i end matches
31 @@ -3204,10 +3197,21 @@
33 (body cnk init src str i end matches fail))))))))
35 - (lp (sre-sequence (cdr sre))
38 - (rec (list '* (sre-sequence (cdr sre))))))
40 + ((sre-empty? (sre-sequence (cdr sre)))
41 + (error "invalid sre: empty +" sre))
45 + (lp (sre-sequence (cdr sre))
48 + (lambda (cnk init src str i end matches fail)
49 + (body cnk init src str i end matches
51 + (next cnk init src str i end matches fail)
55 (rec `(** ,(cadr sre) ,(cadr sre) ,@(cddr sre))))
57 diff -ur a/irregex-utils.scm b/irregex-utils.scm
58 --- a/irregex-utils.scm 2016-09-11 19:03:00.000000000 -0400
59 +++ b/irregex-utils.scm 2017-01-01 22:25:25.000000000 -0500
64 - ((and (pair? (cddr x)) (pair? (cddr x)) (not (eq? x obj)))
65 + ((and (pair? (cdr x)) (pair? (cddr x)) (not (eq? x obj)))
66 (display "(?:" out) (for-each lp (cdr x)) (display ")" out))
67 (else (for-each lp (cdr x)))))
69 diff -ur "a/manual-html/Unit irregex.html" "b/manual-html/Unit irregex.html"
70 --- "a/manual-html/Unit irregex.html" 2016-09-11 19:10:47.000000000 -0400
71 +++ "b/manual-html/Unit irregex.html" 2017-01-01 22:26:05.000000000 -0500
73 <dd class="defsig"><p>Returns an optimized SRE matching any of the literal strings in the list, like Emacs' <tt>regexp-opt</tt>. Note this optimization doesn't help when irregex is able to build a DFA.</p></dd>
75 <h5 id="sec:sre-.3estring"><a href="#sec:sre-.3estring">sre->string</a></h5><dl class="defsig"><dt class="defsig" id="def:sre-.3estring"><span class="sig"><tt>(sre->string <sre>)</tt></span> <span class="type">procedure</span></dt>
76 -<dd class="defsig"><p>Convert an SRE to a POSIX-style regular expression string, if possible.</p></dd>
77 +<dd class="defsig"><p>Convert an SRE to a PCRE-style regular expression string, if possible.</p></dd>
79 -<hr /><p>Previous: <a href="Unit%20extras.html">Unit extras</a></p><p>Next: <a href="Unit%20srfi-1.html">Unit srfi-1</a></p></div></div></body>
80 \ No newline at end of file
81 +<hr /><p>Previous: <a href="Unit%20extras.html">Unit extras</a></p><p>Next: <a href="Unit%20srfi-1.html">Unit srfi-1</a></p></div></div></body>