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

feat(compiler): Allow lists and arrays on the left side of access expressions #1557

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

ospencer
Copy link
Member

@ospencer ospencer commented Dec 18, 2022

This essentially allows you to write expressions like [> 1, 2, 3][1].

A happy side effect is a bunch of cleanup of error messages, since the nonterminals are no longer inlined with separate parser states.

@ospencer ospencer self-assigned this Dec 18, 2022
@ospencer ospencer force-pushed the oscar/parse-more-array-expressions branch from d14453f to ce85ea3 Compare December 18, 2022 20:54
@ospencer ospencer marked this pull request as ready for review December 18, 2022 21:00
Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@phated phated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! And this isn't breaking so we could release as a 0.5.10 with the array access non-int fix?

@ospencer ospencer merged commit 8c00750 into main Dec 22, 2022
@ospencer ospencer deleted the oscar/parse-more-array-expressions branch December 22, 2022 17:13
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.

3 participants