Re: Grammar analysis

Steven Pemberton <steven.pemberton@cwi.nl> writes:
> Nothing needs to be added to the language.

*Shrug*

You’ve missed the point, I think. The goal isn’t that I should be able
to define my own nonterminal to mean empty. The goal is to prevent
grammars from using the absence of any token at all to mean empty.

I’ve tripped over the empty choice in rules like this one

  rule: thing1; thing; thing;.

enough times to think it’s a bug not a feature.

Several other readers on the list expressed sympathy for this position.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Sunday, 27 August 2023 13:24:12 UTC