Re: repetition

> Norm, you're using a*"#" where the spec uses "a"*"#" (if that makes
> any difference to your explanation)?

It doesn’t. Think of a as “a” if you prefer, or as a nonterminal. It
doesn’t matter.

> It grated on me reading it as a regex!
> As regex I think it would be "a"*"#"* to allow 0 or more of either or
> both?

But I don’t think that’s the intent. It’s not 0 or more of either it’s
zero or more of “a” with a “#” between each if there’s more than one.
(but no “#” if there’s 0 or 1 “a”).

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Thursday, 16 December 2021 12:38:54 UTC