Re: Ambiguity (what else!?) question

> So far the hardest part of iXML for me has generally been understanding
> why a grammar doesn’t match, at least once i got past the somewhat
> unusual syntax (; for or?? looking like prolog is not a plus for me...)

; is not or! A rule is a list of alternatives, separated by semicolons; like CSS.
I suppose you could read it as 'or' if you wanted, but nowhere is it defined as an 'or'. 
I don't read the semicolon in CSS as 'and' either.

And by the way, '|' is an option for people who have trouble with semicolons.

The notation dates from at least the mid-60's, and predates prolog.

Steven

Received on Wednesday, 29 January 2025 15:32:18 UTC