Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- **Regular Expression (re) Module Runtime Implementation** (Issue #30)
- Full runtime support using the `regex` crate
- Core functions: `re.compile()`, `re.search()`, `re.match()`, `re.fullmatch()`
- Multi-match functions: `re.findall()`, `re.finditer()`
- String manipulation: `re.split()`, `re.sub()`, `re.subn()`
- Utility functions: `re.escape()`, `re.purge()`
- **Match object support** with methods:
- `group()` - returns matched string
- `groups()` - returns tuple of captured groups
- `start()`, `end()` - match position indices
- `span()` - returns (start, end) tuple
- **Regex flags support**:
- `re.IGNORECASE` / `re.I` - case-insensitive matching
- `re.MULTILINE` / `re.M` - multi-line mode (^ and $ match line boundaries)
- `re.DOTALL` / `re.S` - dot matches newlines
- `re.VERBOSE` / `re.X` - verbose patterns with comments
- `re.ASCII` / `re.A` - ASCII-only matching
- `re.UNICODE` / `re.U` - Unicode matching (default)
- Compile-time pattern evaluation for constant string patterns

- **Datetime Module Runtime Implementation** (Issue #32)
- Full runtime support for `datetime` module with chrono backend
- Constructors: `datetime.datetime()`, `datetime.date()`, `datetime.time()`, `datetime.timedelta()`
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ log = "0.4.29"
serde = { version = "1.0.228", features = ["derive"], optional = true }
serde_json = "1.0"
chrono = "0.4"
regex = "1.11"

[lib]
name = "waspy"
Expand Down
2 changes: 1 addition & 1 deletion docs/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ <h1 class="title">Waspy Development Board</h1>
{ name: "math module (pi, e, tau, inf, nan, sqrt, sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh, exp, log, log10, log2, pow, floor, ceil, trunc, round, abs, fabs, copysign, fmod, remainder, degrees, radians, hypot, factorial, gcd, isnan, isinf, isfinite)", status: "done", version: "0.8.0" },
{ name: "random module (random, randint, randrange, uniform, choice, shuffle, sample, seed, getrandbits, gauss, normalvariate, expovariate)", status: "done", version: "0.8.0" },
{ name: "json module (loads, dumps, load, dump, JSONEncoder, JSONDecoder) - runtime implementation", status: "done", version: "unreleased" },
{ name: "re module (compile, search, match, fullmatch, findall, finditer, split, sub, subn, escape, purge, IGNORECASE, MULTILINE, DOTALL, VERBOSE, ASCII)", status: "done", version: "0.8.0" },
{ name: "re module (compile, search, match, fullmatch, findall, finditer, split, sub, subn, escape, purge, IGNORECASE, MULTILINE, DOTALL, VERBOSE, ASCII, UNICODE) - full runtime support with match objects", status: "done", version: "unreleased" },
{ name: "datetime module (datetime, date, time, timedelta, timezone, tzinfo, now, today, fromtimestamp, fromisoformat, strftime, strptime, replace, timestamp, isoformat, weekday, isoweekday, MINYEAR, MAXYEAR) - full runtime support", status: "done", version: "unreleased" },
{ name: "collections module (namedtuple, deque, Counter, OrderedDict, defaultdict, ChainMap, UserDict, UserList, UserString)", status: "done", version: "0.8.0" },
{ name: "itertools module (count, cycle, repeat, chain, compress, dropwhile, filterfalse, groupby, islice, starmap, takewhile, tee, zip_longest, product, permutations, combinations, combinations_with_replacement, accumulate, batched, pairwise)", status: "done", version: "0.8.0" },
Expand Down
Loading
Loading