Skip to content

Parser: function calls compose as call args#184

Merged
danieljohnmorris merged 1 commit into
mainfrom
fix/function-as-call-arg
May 11, 2026
Merged

Parser: function calls compose as call args#184
danieljohnmorris merged 1 commit into
mainfrom
fix/function-as-call-arg

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Deferred follow-up from PR #159. Doc-cited hd tl xs doesn't chain; prnt str nc parses as prnt(str, nc) (2 args). Single-pass with forward references: builtin arities pre-registered, user fn arities registered as their headers parse. New parse_call_arg(in_fn_ref_pos) eagerly consumes nested calls when the inner is a known function with N args. Outer arity not clamped so over-arity verifier errors still surface. HOF args (fld max xs 0) preserved via fn-ref slot flag. 14 cross-engine tests + example.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 94.47853% with 9 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/parser/mod.rs 94.37% 9 Missing ⚠️

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris merged commit 2790ece into main May 11, 2026
5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/function-as-call-arg branch May 11, 2026 23:10
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