Ben Aston
Ben Aston

Reputation: 55739

How do I parse this syntax in the ECMAScript specification?

From ECMA 262, 10.3.1 (http://ecma-international.org/ecma-262/5.1/#sec-10.3.1)

During execution of ECMAScript code, the syntactic production PrimaryExpression : Identifier is evaluated using the following algorithm

How should I read the following expression?

PrimaryExpression : Identifer

Upvotes: -1

Views: 40

Answers (1)

SingleNegationElimination
SingleNegationElimination

Reputation: 156188

the quoted expression recalls the (relevant) fragment of the language grammer defined fully in Appendix 3

in more detail, the term on the left, PrimaryExpression non-terminal, which can be, among other things, an Identifier; Other parts of the of the language may require that a PrimaryExpression be "parsed here", which could be allowed to be an Identifier. This linked section goes on to explain the algorith used for resolving an Identifier into a PrimaryExpression

Upvotes: 1

Related Questions