Skip to content

feat(stdlib+codegen): str.classify native classifier with 6-arg AOT support - #289

Merged
zaidejjo merged 3 commits into
devfrom
feat/native-classify
Oct 7, 2026
Merged

zaidejjo merged 3 commits into
devfrom
feat/native-classify

Conversation

@zaidejjo

@zaidejjo zaidejjo commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Adds std.str.classify (comment-aware line classification returning lines, code, comments, blanks) with Rust + C twins, strict parity fixture, and docs.

Also fixes a latent AOT bug found while testing: both C backends capped native calls at 5 args — 6+ silently emitted zz_unit() (HIR backend) or errored (chunk backend). Adds zz_call_native6 and 6-arg arms in both.

Byte-oriented, ASCII-4 trim, mirrors split/trim/starts_with native semantics exactly.

@zaidejjo
zaidejjo merged commit 9ca69b7 into dev Oct 7, 2026
2 checks passed
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