You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also the yield precedence is not correctly specified, in particular regarding the interaction with arrays, that is [yield "foo" => "bar"], which is [(yield "foo" => "bar")] rather than [(yield "foo") => "bar"].
Precedence fixed for by-ref assign (1058a50), yield from (b0dadd5) and print (63d72a6).
The issue with the yield vs array literal precedence remains, and I'm not sure if there's any reasonable way to specify that in grammar. I didn't manage to get this to work without precedence annotations in the parser.
Activity
nikic commentedon Sep 19, 2017
yield fromalso has incorrect precedence.nikic commentedon Sep 19, 2017
Also the
yieldprecedence is not correctly specified, in particular regarding the interaction with arrays, that is[yield "foo" => "bar"], which is[(yield "foo" => "bar")]rather than[(yield "foo") => "bar"].nikic commentedon Mar 15, 2019
Precedence fixed for by-ref assign (1058a50), yield from (b0dadd5) and print (63d72a6).
The issue with the yield vs array literal precedence remains, and I'm not sure if there's any reasonable way to specify that in grammar. I didn't manage to get this to work without precedence annotations in the parser.
nikic commentedon Mar 15, 2019
Opened #235 for the yield issue, closing this one.