Commit d3991d6
Remove old pattern implementation and consolidate to new bytecode VM system
- Remove src/stdlib/legacy_pattern.rs (old regex-based pattern system)
- Clean up src/stdlib/pattern.rs removing ~1000 lines of old IR parsing code
- Keep only new native functions that integrate with bytecode VM pattern system
- Update src/stdlib/pattern_test.rs with basic validation tests
- Add missing native_pattern_replace/split functions required by interpreter
- Remove legacy pattern registrations from stdlib module
- Fix TestPrograms/pattern_stdlib_test.wfl syntax for WFL function calls
This eliminates API confusion between old and new pattern systems as requested,
reducing codebase by ~2000 lines while preserving all functionality through
the new advanced natural language pattern matching system.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3ec1d2a commit d3991d6
6 files changed
Lines changed: 132 additions & 2205 deletions
File tree
- TestPrograms
- src/stdlib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | | - | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
0 commit comments