Does anyone know why at the end of section 7.6, ECMA-262, fifth edition specification , nonterminals UnicodeLetter, UnicodeCombiningMark, UnicodeDigit, UnicodeconnectorPunctuation and UnicodeEscapeSequence are not followed by two colons?
From section 5.1.6:
Nonterminal characters are shown in italics. The definition of nonterminal is introduced by the name of the nonterminal, followed by one or more colons. (The number of colons indicates the grammar to which the production belongs.)
Since the lexical works are distinguished by two colons, and this is under the “Lexical conventions”, I assume that they were going to introduce colons. Does this sound right?
Just make sure that they are truly non-terminals, and that they really are part of the lexical grammar.
EDIT
I noticed that there are voices to close this. Just to talk about why this is related to programming, this applies to anyone who wants to implement an ECMAScript interpreter.
source share