-
-
Notifications
You must be signed in to change notification settings - Fork 380
Issue 13538 & 13539 - Improve variable declaration grammar for old C style syntax #664
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
Conversation
Excellent idea! |
@Hackerpilot How do you think about this separation? |
This still allows |
Right. This PR still accepts any C-style syntax, but after the change we can easily say "All |
VarDeclarator still allows BasicType2, so removing the Alt rules will still allow |
The To recognize all C-style declarations in grammar rule, I added |
@Hackerpilot Do you have a time re-review this PR? @WalterBright You're going to make all C-style declarations errors. This PR will help it from grammar side. |
It looks good to me. |
Issue 13538 & 13539 - Improve variable declaration grammar for old C style syntax
Thanks! |
Issue 13538 - Divide old C style syntax from D style grammar rule
Issue 13539 - Disallow optional template parameters with C-style syntax