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

Explain grammar details #7

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Explain grammar details #7

merged 1 commit into from
Jan 17, 2024

Conversation

dalito
Copy link
Owner

@dalito dalito commented Jan 17, 2024

The BNF grammar in the UCUM specification is not said to be complete or definitive but serves as an illustration. In order to fulfill the specification written in the text, we had to extend and change the grammar slightly. This PR adds notes to explain the changes we made (as comment in code).

This also adds another edge case to tests which is parsed as it should. (from ucum-org/ucum#157)

@dalito dalito merged commit 254a32b into main Jan 17, 2024
3 checks passed
@dalito dalito deleted the explain_rules branch February 13, 2024 13:14
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.

1 participant