We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The correct JS associativity: http://esprima.org/demo/parse.html?code=if(a)%20if(b)%20c%3B%20else%20d
This compiler associates to the outer if.
if
$ coffee -bep 'if a then if b then c else d' if (a) { if (b) { c; } } else { d; }
My compiler handles this correctly, associating with the inner if.
coffee --js --no-optimise --cli 'if a then if b then c else d' // Generated by CoffeeScript 2.0.0-beta8-dev if (a) if (b) { c; } else { d; }
Also, if a then if b then c else d else e fails to parse.
if a then if b then c else d else e
The text was updated successfully, but these errors were encountered:
Isn't that just good ol' satyr/coco#127 (/ #2342) ?
Sorry, something went wrong.
Oh, damn. I knew there was an issue. Closing in favour of #2342.
No branches or pull requests
The correct JS associativity: http://esprima.org/demo/parse.html?code=if(a)%20if(b)%20c%3B%20else%20d
This compiler associates to the outer
if
.My compiler handles this correctly, associating with the inner
if
.Also,
if a then if b then c else d else e
fails to parse.The text was updated successfully, but these errors were encountered: