Skip to content

Struct grammar #237

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

Merged
merged 2 commits into from
Feb 11, 2018
Merged

Struct grammar #237

merged 2 commits into from
Feb 11, 2018

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Feb 7, 2018

This is #160 except I removed the ?s from visibility as they are extraneous.

brauliobz and others added 2 commits November 30, 2017 00:41
The visibility grammar already has `EMPTY` as an option.
Copy link
Contributor

@matthewjasper matthewjasper left a comment

Choose a reason for hiding this comment

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

This looks good. One thought I had, but I think this is fine either way.

> [IDENTIFIER] 
> [_Generics_]<sup>?</sup>
> [_WhereClause_]<sup>?</sup>
> ( `{` _StructFields_<sup>?</sup> `}` | `;` )
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it help to have this match the text and split this into StructStruct and UnitStruct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I considered that when I first reviewed @brauliobz 's grammar and found a reason against it. Not sure anymore though. I'd rather not mess with the PR anymore than needed right now.

@matthewjasper matthewjasper merged commit 020dcab into rust-lang:master Feb 11, 2018
@matthewjasper
Copy link
Contributor

Thanks!

@Havvy Havvy deleted the struct-grammar branch February 19, 2018 08:33
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