Re: Character classes tests

Steven Pemberton <steven.pemberton@cwi.nl> writes:
> I just realised that this grammar is ambiguous, because LC is a subset of L, so should be
> replaced by two tests:
>
> ================
> input: char*. -char: C; L; M; N; P; S; Z; Unassigned. Unassigned: ~[C; L; M; N; P; S;
> Z]. C: [C]. L: [L]. M: [M]. N: [N]. P: [P]. S: [S]. Z: [Z].

Okay.

> ===================
> input: char*. -char: C; L; LC; Lm ; Lo; M; N; P; S; Z; Unassigned.
> Unassigned: ~[C; L; LC; Lm ; Lo; M; N; P; S; Z].
> C: [C]. L: [L]. LC: [LC].
> Lm: [Lm].
> Lo: [Lo]. M: [M]. N: [N]. P: [P]. S: [S]. Z: [Z].

Doesn’t this test exhibit the same ambiguity since it still has L and LC?

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Saturday, 17 December 2022 16:31:23 UTC