Re: Properties of the ixml grammar

> 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