Open vyivel opened 2 years ago
Another example (relating to issue #319):
[34] ns-char ::=
nb-char - s-white
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.
"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.