Skip to content

feat: add spl builtin — split text by separator#48

Merged
danieljohnmorris merged 1 commit into
mainfrom
feature/builtin-spl
Mar 1, 2026
Merged

feat: add spl builtin — split text by separator#48
danieljohnmorris merged 1 commit into
mainfrom
feature/builtin-spl

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Summary

  • Adds spl t sep → L t builtin: splits text by separator, returning a list of text segments
  • Implemented across verifier, interpreter, and VM (OP_SPL = 48, ABC mode)
  • 7 new tests: verifier (valid, wrong type, wrong arity), interpreter (basic, empty), VM (basic, empty)

Test plan

  • cargo test — all 858 tests pass (746 unit + 112 integration)
  • cargo clippy — no new warnings

spl t sep → L t: splits a text string by a separator, returning a list
of text segments. Follows the standard builtin pattern across verifier,
interpreter, and VM (OP_SPL = 48, ABC mode).
@danieljohnmorris danieljohnmorris merged commit f47582f into main Mar 1, 2026
1 check passed
@danieljohnmorris danieljohnmorris deleted the feature/builtin-spl branch March 1, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant