~ chicken-core (chicken-5) 0b4c055becbf27356d162443c44415f89ebc3dd2
commit 0b4c055becbf27356d162443c44415f89ebc3dd2
Author: Peter Bex <peter@more-magic.net>
AuthorDate: Mon May 8 19:41:05 2017 +0200
Commit: Evan Hanson <evhan@foldling.org>
CommitDate: Sat May 13 19:56:01 2017 +1200
Only export documented procedures from chicken.irregex
The chicken.irregex module exported lots of internal procedures that
are useless or even dangerous, like irregex-flags and
irregex-dfa/search. This is confusing and results in an environment
with more identifiers than one would expect.
Signed-off-by: Evan Hanson <evhan@foldling.org>
diff --git a/irregex.scm b/irregex.scm
index 2726ee34..aa7114a5 100644
--- a/irregex.scm
+++ b/irregex.scm
@@ -31,19 +31,31 @@
(fixnum))
(module chicken.irregex
- (irregex irregex-apply-match irregex-dfa irregex-dfa/search
- irregex-extract irregex-flags irregex-fold irregex-fold/chunked
- irregex-lengths irregex-match irregex-match? irregex-match-data?
- irregex-match-end-chunk irregex-match-end-index irregex-match-names
- irregex-match-num-submatches irregex-match-start-chunk
- irregex-match-start-index irregex-match-subchunk
- irregex-match-substring irregex-match-valid-index?
- irregex-match/chunked irregex-names irregex-new-matches irregex-nfa
- irregex-num-submatches irregex-opt irregex-quote irregex-replace
- irregex-replace/all irregex-reset-matches! irregex-search
- irregex-search/chunked irregex-search/matches irregex-split irregex?
- make-irregex-chunker maybe-string->sre sre->irregex sre->string
- string->irregex string->sre)
+ (;; Constructors, accessors and predicates
+ irregex irregex? string->sre maybe-string->sre sre->irregex
+ irregex-names irregex-num-submatches string->irregex
+
+ ;; Chunking constructor
+ make-irregex-chunker
+
+ ;; Main API
+ irregex-extract irregex-fold irregex-match irregex-match?
+ irregex-search irregex-split irregex-replace irregex-replace/all
+
+ ;; Chunked main API
+ irregex-fold/chunked irregex-match/chunked irregex-search/chunked
+
+ ;; Match extraction API
+ irregex-match-data? irregex-match-names
+ irregex-match-start-index irregex-match-end-index
+ irregex-match-num-submatches irregex-match-substring
+ irregex-match-valid-index?
+
+ ;; Chunked match API
+ irregex-match-start-chunk irregex-match-subchunk
+
+ ;; Utilities
+ sre->string irregex-opt irregex-quote)
(import scheme chicken)
Trap