Skip to content

List literal with refs: parse [a b c] as 3-element list#167

Merged
danieljohnmorris merged 2 commits into
mainfrom
fix/list-literal-refs
May 12, 2026
Merged

List literal with refs: parse [a b c] as 3-element list#167
danieljohnmorris merged 2 commits into
mainfrom
fix/list-literal-refs

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Two personas hit [a b c] parsing as Call(a, b, c) instead of a list of three refs. Asymmetric with [1 2 3] (numeric) which already worked. Disambiguation: if the list has top-level commas, treat as expression list; otherwise treat bare refs as list elements. [(f x) y] still works for explicit calls. Cross-engine tests + example.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 93.75000% with 7 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 93.75% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris force-pushed the fix/list-literal-refs branch 5 times, most recently from 0361771 to 806e553 Compare May 12, 2026 00:12
@danieljohnmorris danieljohnmorris force-pushed the fix/list-literal-refs branch from 806e553 to 1b1470f Compare May 12, 2026 00:13
@danieljohnmorris danieljohnmorris merged commit c6ade4b into main May 12, 2026
5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/list-literal-refs branch May 12, 2026 09:02
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