-
Notifications
You must be signed in to change notification settings - Fork 48
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
Clean up NESTML grammar definition #1144
Conversation
c59d7ef
to
4656e3b
Compare
Bencher Report
Click to view all benchmark results
|
4656e3b
to
c1fb633
Compare
c1fb633
to
00ad179
Compare
00ad179
to
7b3f127
Compare
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.
Thank you for fixing this! I have two minor comments.
Co-authored-by: Pooja Babu <[email protected]>
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 to me, thanks!
Great, thank you! |
One of the unit tests (
nestml_printer_test.py
) was silently failing on master, giving parse errors which were not resulting in exceptions/test failures.This PR fixes the issue and cleans up (internally refactors) the NESTML grammar definition.
The term "block" only refers to top-level elements in a model (update, state, parameters, onReceive, etc.) The inner "ASTBlock" was renamed to ASTStmtsBody as it includes an INDENT in the grammar rule.