-
Notifications
You must be signed in to change notification settings - Fork 49
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
Added the UDUNITS2 grammar and a graph representation of a unit #140
Conversation
…xtensive test suite.
| product power // e.g. m2s (s*m^2) | ||
| product MULTIPLY power // e.g. m2*s | ||
| product DIVIDE power // e.g. m2/2 | ||
| product WS+ power // e.g. "m2 s" |
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.
@pelson So the UDUNITS-2 grammar doesn't explicitly define this last case, and yet supports it? Is that right?
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.
Yes. Also space is defined in the MULTIPLY token in the C grammar, but that isn't actually accurate (whitespace is significant in other parts of the codebase).
@pelson Awesome! 👍 |
This is the final step before adding a super trivial interface to turn a graph into a TeX representation (or any other representation we want now [sympy?]).