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

production syntax: difference syntax isn't described #293

Open
vyivel opened this issue Jul 27, 2022 · 2 comments
Open

production syntax: difference syntax isn't described #293

vyivel opened this issue Jul 27, 2022 · 2 comments

Comments

@vyivel
Copy link

vyivel commented Jul 27, 2022

"Production Syntax" section describes the syntax of parenthesization, quantification etc, but doesn't seem to mention the syntax of difference/subtraction/exception (term - string, as seen in e.g. plain-scalar-first-character rule). Looks like an oversight.

@GrahamHannington
Copy link

Another example (relating to issue #319):

[34] ns-char ::=
  nb-char - s-white

Reference

@Thom1729
Copy link
Collaborator

Thom1729 commented Dec 1, 2023

Off the top of my head, I believe that a - b can always be interpreted [lookahead ≠ b] a. Of course, in cases where a and b are both effectively character classes, then you can equivalently interpret it as set subtraction, and this is surely the intuition behind the operator.

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

No branches or pull requests

3 participants