Quantcast

AssignmentExpression grammar

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

AssignmentExpression grammar

yaugin
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]
    [+Yield]YieldExpression[?In]
    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]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Loading...