Is this ambiguous?

Hello world,

Consider this grammar:

list: word + -',' .
word: c, v, c ; c, v, v .
-c: ["bcdfghjklmnpqrstvwxyz"] .
-v: ["aeiouy" ].

and this input: “hey,bee”.

By one reckoning, that’s ambiguous: “hey” can be either cvc or cvv
because I’ve identified “y” as both a consonant and a vowel.

But “c” and “v” are both elided from the output, so the generated XML is
identical for both parses. By that reckoning, it isn’t ambiguous.

I expect our intent is that it *isn’t* ambiguous…but I thought I’d check.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Sunday, 13 February 2022 10:36:57 UTC