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

Simplify grammar for init-declarators #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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