As noticed by Chris Lambrou in
<http://marc.info/?l=antlr-interest&m=120716381025014&w=2>,
the ES3 grammar defines RegularExpressionLiteral, but never
uses it in the syntactic grammar.

It is used in the lexical grammar in InputElementRegExp, but that
obviously has no effect if it is not syntactically allowed as a
literal. This appears to be a simple omission in section 7.8, which
has 5 subsections for the various kinds of literal, but only 4
alternatives in the grammar.

This does not appear to be fixed in the latest (22 September 2008)
ES3.1 draft.

-- 
David-Sarah Hopwood
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to