W3C home > Mailing lists > Public > public-ixml@w3.org > October 2022

Re: Properties of the ixml grammar

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 18 Oct 2022 10:43:13 +0000
Message-Id: <1666089480835.209996923.1670868111@cwi.nl>
To: "Norm Tovey-Walsh" <norm@saxonica.com>
Cc: public-ixml@w3.org
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 18 October 2022 10:43:30 UTC