- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Tue, 18 Oct 2022 10:43:13 +0000
- To: "Norm Tovey-Walsh" <norm@saxonica.com>
- Cc: public-ixml@w3.org
Received on Tuesday, 18 October 2022 10:43:29 UTC
> I have sometimes been puzzled by the way the <alts> element is sometimes
> present and sometimes not, but I can’t point to an example off the top
> of my head.
I suppose it might have been easier to understand if instead of
-factor: terminal;
nonterminal;
insertion;
-"(", s, alts, -")", s.
we had used
-factor: terminal;
nonterminal;
insertion;
group.
group: -"(", s, -alts, -")", s.
Whenever an <alts> element shows up, you should see it as a <group> element, even if it only has a single <alt> child.
Steven
Received on Tuesday, 18 October 2022 10:43:29 UTC