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

Extend Unicode terminal parsing #148

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Extend Unicode terminal parsing #148

merged 1 commit into from
Jun 15, 2023

Conversation

jhnaldo
Copy link
Contributor

@jhnaldo jhnaldo commented Jun 15, 2023

For #147, I extended the Unicode terminal parsing algorithm by adding the CodePoint case for symbols in the spec.
Now, we support the following terminal symbols as well according to The Unicode Standard, Version 15.0.0, Appendix A, Notational Conventions and rbuckton/grammarkdown#91:

<U+2212 MINUS SIGN>

@jhnaldo jhnaldo self-assigned this Jun 15, 2023
@jhnaldo jhnaldo added bug Something isn't working area:spec Related to specifications labels Jun 15, 2023
@jhnaldo jhnaldo merged commit d503277 into dev Jun 15, 2023
@jhnaldo jhnaldo deleted the dev-unicode-parsing branch June 15, 2023 07:12
Comment on lines +131 to 133
case CodePoint(cp, desc) =>
app >> "<U+" >> cp >> (if (desc == "") "" else " " + desc) >> ">"
case CodePointAbbr(abbr) => app >> "<" >> abbr >> ">"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this still missing support for bare code point nonterminals described in the second bullet point at grammarkdown Character Literals and Ranges (e.g., U+00A0 and U+1D306)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:spec Related to specifications bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants