summaryrefslogtreecommitdiff
path: root/bs/re.scm
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-11-29 13:50:41 -0500
committerBen Sima <ben@bsima.me>2022-11-29 13:50:41 -0500
commit28b99fa065b2b20c24a51c1f73d501191afbd1a7 (patch)
tree03a33555b875761fc62671d8b39d43e0062e2253 /bs/re.scm
parent5db3bb98b3dae955049f76d67f59b95c41f91cd8 (diff)
Trivial scheme cleanups
Diffstat (limited to 'bs/re.scm')
-rw-r--r--bs/re.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/bs/re.scm b/bs/re.scm
index ec5b2ba..46cfa9e 100644
--- a/bs/re.scm
+++ b/bs/re.scm
@@ -1,4 +1,4 @@
-(library (bs re (0))
+(library (bs re)
;; Similar to Python's `re` module. One big difference is that the
;; string object to be searched is always the first argument to a
@@ -16,6 +16,7 @@
;; TODO: make `match` and `search` do different things
(export match group sub search compile
+ EXTENDED
;; I IGNORECASE M MULTILINE
)
(import (rnrs base)
@@ -26,6 +27,7 @@
;; (define IGNORECASE regexp/icase)
;; (define M regexp/newline)
;; (define MULTILINE regexp/newline)
+ (define EXTENDED 'regexp/extended)
(define (compile pattern . flags)
"Compile `pattern` into a regular expression object."