Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate typed and untyped array/set literals, make case always use ranges #479

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Feb 7, 2025

Refs #470, empty array/set literals need this to work in hexer.

Not sure if there is a reason why case of branches didn't change their selectors from set to ranges until nifcgen, would have had to make them always curly here which requires curly to be traversed without erroring in the rest of hexer.

@metagn metagn changed the title try separating typed and untyped array/set literals separate typed and untyped array/set literals, make case always use ranges Feb 7, 2025
@metagn metagn marked this pull request as ready for review February 7, 2025 08:15
@Araq
Copy link
Member

Araq commented Feb 7, 2025

In a follow-up PR feel free to also adapt Nifler to produce ranges instead of set for case statements. Or does it use these already?

@Araq Araq merged commit 4a64e71 into nim-lang:master Feb 7, 2025
3 checks passed
@metagn
Copy link
Collaborator Author

metagn commented Feb 7, 2025

Yes, nifler generates ranges now

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.

2 participants