AssignmentExpression grammar

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

AssignmentExpression grammar

Maybe I have some fundamental misunderstanding but can someone explain how AssignmentExpression can produce a typical rhs (e.g. a literal value) of an assignment, such as with the grammatical construct

    var BindingIdentifier = AssignmentExpression

(i.e. var BindingIdentifier Initializer as given in section 13.3 of ecmascript)

AssignmentExpression[In, Yield]:
    ConditionalExpression[?In, ?Yield]
    ArrowFunction[?In, ?Yield]
    LeftHandSideExpression[?Yield] = AssignmentExpression[?In, ?Yield]
    LeftHandSideExpression[?Yield] AssignmentOperator AssignmentExpression[?In, ?Yield]

    AssignmentOperator: one of
    *= /= %= += -= <<= >>= >>>= &= ^= |= **=
dev-tech-js-engine mailing list
[hidden email]