Re: [heycam/webidl] Ellipsis token quirkiness? (#812)

Yeah, the spooky-action-at-a-distance — that any terminal literal appearing in the syntactic grammar is implicitly excised from the set of strings belonging to any of the regexp-defined terminal languages — has historically led to repeated issues with `Other` I think, since it probably isn’t super obvious that by using any new literal terminal somewhere you’re actually altering the lexical language “globally” and not just the syntactic language “locally”.

This seems to happen in reverse too where Other can end up with vestiges. Looking at it right now I can see that "." and "-" appear in Other as alternatives. This has the effect of making them unique terminals which other (lowercase) doesn’t match. But ... because they appear nowhere else, and because Other includes other and nothing else does, and because no alternatives of Other have defined semantics (that being the idea), this is a tautology — "." and "-" existing there has the same effect as them not existing, they are pure complications.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/812#issuecomment-809167723

Received on Monday, 29 March 2021 08:08:13 UTC