Re: Grammar analysis

Sent from my iPad

> On 27 Aug 2023, at 10:20, Norm Tovey-Walsh <norm@saxonica.com> wrote:
> 
> Just using () helps:
> 
>  rule: name, "=", value; () .
> 
> And you can certainly define your own terminal “empty”, but that won’t
> help with examples like the one that started this thread where the
> author chose not to do that.

I think this is the simplest and most obvious. We could even modify the syntax (non-backwards-compatible) to mandate the use of an empty bracket pair in place of a whitespace-only alt…

John Lumley 
john@saxonica.com

Received on Sunday, 27 August 2023 11:53:54 UTC