Re: *which* alternative that matches nothing? (was Re: repetition)

 > I'd be happy with empty parens, but then .....

I'm not sure if it is clear, but empty parens is perfectly acceptable in 
current ixml, if you prefer to use it.

    a: "a"; ().

is legal ixml, and has the meaning you want.

Personally, when I want to be explicit, I write

    a: "a"; empty.
    -empty: .

but that's just a question of taste.

The syntax of parens is that they can contain anything that can appear on 
the right-hand side of a rule, i.e that which can appear between the ":" 
and the "." of a rule.

Steven

Received on Thursday, 16 December 2021 22:03:26 UTC