Skip to content
New issue

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

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

Already on GitHub? # to your account

Is it a parsing bug? #2688

Closed
zhanzhenzhen opened this issue Jan 30, 2013 · 4 comments
Closed

Is it a parsing bug? #2688

zhanzhenzhen opened this issue Jan 30, 2013 · 4 comments

Comments

@zhanzhenzhen
Copy link
Contributor

if true and true and
        true and (
            true or true
        )
    alert("")

There will be parsing errors. Only when I use:

if true and true and
        true and (
            true or true
        )
            alert("")

There will be no error.

@vendethiel
Copy link
Collaborator

Coffee can't guess. Use then :

if a and true and
 b and false and
  c
then e

@zhanzhenzhen
Copy link
Contributor Author

Adding a "then" is not very useful. If I write multiple statements in "then", it will also show an error.
Can coffee compiler get smarter to guess this kind of code? It seems this problem is related to parentheses in the expression.

@satyr
Copy link
Collaborator

satyr commented Jan 31, 2013

Most likely due to #1275.

@jashkenas
Copy link
Owner

Yep -- let's talk about it over there.

@xixixao xixixao mentioned this issue Jan 22, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants