Uh oh!
There was an error while loading. Please reload this page.
adds labeled switch to the grammar.y documentation - #23119
Closed
ityonemo wants to merge 3 commits into
Closed
Conversation
This must be separate as otherwise, SwitchExpr can not be followed by dot dereferencing, in the same way that if statements can.
ityonemo
marked this pull request as draft
March 6, 2025 22:55
ityonemo
commented
Mar 6, 2025
ContributorAuthor
looks like there are some major cases still not covered correctly by this change. |
ityonemo
marked this pull request as ready for review
March 6, 2025 23:30
ContributorAuthor
resolved and tested against the zig codebase in e-xyza/zig_parser |
andrewrk
commented
Mar 8, 2025
Member
This data is copy-pasted from https://github.com/ziglang/zig-spec/tree/master/grammar - that's where you should make the PR to |
ityonemo
commented
Mar 10, 2025
ContributorAuthor
ok thanks! I was wondering why I couldn't find it. |
ityonemo
commented
Mar 10, 2025
ContributorAuthor
new PR here: ziglang/zig-spec#60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BlockLabels now also support Switch Expressions for Duff's Device like control flow.