diff options
author | Ben Sima <ben@bsima.me> | 2022-11-29 13:50:41 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-11-29 13:50:41 -0500 |
commit | 28b99fa065b2b20c24a51c1f73d501191afbd1a7 (patch) | |
tree | 03a33555b875761fc62671d8b39d43e0062e2253 /bs/re.scm | |
parent | 5db3bb98b3dae955049f76d67f59b95c41f91cd8 (diff) |
Trivial scheme cleanups
Diffstat (limited to 'bs/re.scm')
-rw-r--r-- | bs/re.scm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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." |