From db52a6d77c7e9f996402a0b676e5e7df1e38b189 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 6 May 2026 15:31:55 +0000 Subject: [PATCH] plans: tick Phase 1 regexp/regsub in tcl-sx-completion --- plans/tcl-sx-completion.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plans/tcl-sx-completion.md b/plans/tcl-sx-completion.md index 0fb50346..30719bdb 100644 --- a/plans/tcl-sx-completion.md +++ b/plans/tcl-sx-completion.md @@ -32,7 +32,7 @@ Everything here is pure Tcl implementation work. | Status | Work | Effort | Unlocks in Tcl | |---|---|---|---| | [x] | Float in `expr` — detect `.` in number tokens, route through float ops instead of `parse-int` | half day | `expr {3.14 * 2}`, `expr {sqrt(2.0)}`, float comparisons | -| [ ] | `regexp pattern str` and `regsub pattern str repl` wrapping existing SX primitives | few hours | pattern matching, text processing | +| [x] | `regexp pattern str` and `regsub pattern str repl` wrapping existing SX primitives | few hours | pattern matching, text processing | | [ ] | `apply {args body} ?arg…?` — anonymous proc call | 1 hour | higher-order functions, `lmap` idiom | | [ ] | `array get/set/names/size/exists/unset` commands | half day | array variables (tokenizer already parses `$arr(key)`) | @@ -141,6 +141,7 @@ becomes a lasting SX contribution used by every future hosted language. _Newest first._ +- 2026-05-06: Phase 1 regexp/regsub — `tcl-cmd-regexp`/`tcl-cmd-regsub` wrapping `make-regexp`/`regexp-match`/`regexp-match-all`/`regexp-replace`/`regexp-replace-all`; -nocase/-all/-inline/-all flags; matchVar + subgroup capture; 329/329 tests green - 2026-05-06: Phase 1 float expr — `tcl-num-float?`, `tcl-parse-num`, float-aware `tcl-apply-binop`/`tcl-apply-func`/unary-minus/`**`; `sqrt`/`floor`/`ceil`/`round`/`sin`/`cos`/`tan`/`pow`/`exp`/`log` all float-native; 329/329 tests green ---