archives

« Bugzilla Issues Index

#281 — "Literal" should in syntactical grammar instead of lexical grammar


there is no way to put the "Literal" production in a lexer.

If a lexer produce token with type ”Literal“, syntactical parser will not be able to decide to use it as a "Literal" or a "StringLiteral".

The suggest is moving the following rule from Annex A.1 to Annex A.3

Literal ::
NullLiteral
BooleanLiteral
NumericLiteral
StringLiteral
RegularExpressionLitera


corrected in editor's working draft


fixed in "Rev 8", June 12,2012 draft