statements that could be expressions?
mikesamuel at gmail.com
Thu Jun 2 13:43:29 PDT 2011
Yes. That grammar is a subset of the grammar that results from
replacing the 11.1.6 ' PrimaryExpression : "(" Expression ")" '
"(" GroupElement GroupElements ")"
where GroupElement is defined as any Statement except for Block and
EmptyStatement without a terminal semicolon, and GroupElements is
GroupElements : empty
| ";" GroupElement GroupElements
but I thought it was easier to reason about ambiguity and locality of
spec changes for that subset.
2011/6/2 Waldemar Horwat <waldemar at google.com>:
> Did you mean to disallow an expression as the first statement in your
More information about the es-discuss