Adding char-set->sre.

This commit is contained in:
Alex Shinn 2013-11-29 23:52:43 +09:00
parent 300184b160
commit 9c5871484f
2 changed files with 4 additions and 1 deletions

View file

@ -627,6 +627,9 @@
(else (error "invalid sre char-set" sre)))))
(else (error "invalid sre char-set" sre)))))
(define (char-set->sre cset)
(list (char-set->string cset)))
(define (strip-submatches sre)
(if (pair? sre)
(case (car sre)

View file

@ -1,6 +1,6 @@
(define-library (chibi regexp)
(export regexp regexp? rx regexp->sre
(export regexp regexp? rx regexp->sre char-set->sre
regexp-matches regexp-matches? regexp-search
regexp-replace regexp-replace-all
regexp-fold regexp-extract regexp-split