Skip to content

Precedence on ternary expressions #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ichiriac opened this issue Feb 26, 2017 · 0 comments
Closed

Precedence on ternary expressions #66

ichiriac opened this issue Feb 26, 2017 · 0 comments

Comments

@ichiriac
Copy link
Member

Continue precedence implementation on on others nodes - use work already done here #61

<?php 
var_dump($a > 10 ? true : false);

The tree should be like this :

{
  kind: retif, 
  test: {
    kind: bin, type: '>', left: a, right 10
  },
  trueExpr: ...
  falseExpr: ....
}
@ichiriac ichiriac added this to the 2.0.0-pre milestone Feb 26, 2017
@ichiriac ichiriac self-assigned this Feb 26, 2017
ichiriac added a commit that referenced this issue Feb 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant