Skip to content

Conversation

@gnl21
Copy link
Contributor

@gnl21 gnl21 commented Sep 11, 2024

Use a single grammar term for declarators (identifier followed by an optional array-specifier) and init-declarators (declarators with optional initialisation). This simplifies a few rules and makes things a bit more consistent.

Use a single grammar term for declarators (identifier followed by an
optional array-specifier) and init-declarators (declarators with
optional initialisation). This simplifies a few rules and makes things a
bit more consistent.
@gnl21
Copy link
Contributor Author

gnl21 commented Sep 11, 2024

@dj2 These 3 changes are the simplifications that I ended up implementing in my compiler. There are definitely more things that would make the grammar simpler, and interestingly our changes don't really intersect all the much, so we can probably do both. If there's interest in maintaining the grammar then there are further things that I'd like to fix.

Copy link
Contributor

@pdaniell-nv pdaniell-nv left a comment

Choose a reason for hiding this comment

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

OpenGL/ES WG approved

@pdaniell-nv pdaniell-nv added this to the Approved to Merge milestone Dec 18, 2024
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