-
Notifications
You must be signed in to change notification settings - Fork 660
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
Bug/abnf-circuit-grammar #903
Conversation
Codecov Report
@@ Coverage Diff @@
## master #903 +/- ##
==========================================
- Coverage 76.97% 76.91% -0.07%
==========================================
Files 467 467
Lines 20211 20252 +41
==========================================
+ Hits 15558 15576 +18
- Misses 4653 4676 +23
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. In the ABNF grammar, would you be willing to rename the nonterminal member-variable-declaration
to member-variable-declarations
since it consists of all the member variable declarations (with commas/semicolons/nothing)? (Nitpicking, I know...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
@gluax how easy is it to detect that users are using both I don't think we want people to do that and we should emit an error if possible. Regardless, we should emit a warning of deprecated syntax whenever someone uses a |
Should be fairly straightforward to emit an error if both are used @collinc97. |
Resolves #842 and resolves #892.
Member variables are now required to be before member functions.
They also support a trailing command and semi-colon.
There's also a hacky fix to allow an optional comma at the end of the last member variable.
Do note you can mix and match semi-colons and commas at the moment. If this concerns people I can change it to allow only one approach at a time.
I changed all our tests(asides parser tests) to use semi-colons after member-variables. This way if people look at the tests they see semi-colons.