Skip to content
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

bug: x-- * y #138

Closed
gkz opened this issue Jun 7, 2012 · 0 comments
Closed

bug: x-- * y #138

gkz opened this issue Jun 7, 2012 · 0 comments
Labels

Comments

@gkz
Copy link

gkz commented Jun 7, 2012

coco> x = 10
..... y = 5
..... x-- * y
Error: Parse error on line 5: Unexpected ','

Expected output 50
Expected compilation:

var x, y;
x = 10;
y = 5;
x-- * y;

(as in CoffeeScript)

Tokens being produced:

ID:x CREMENT:-- , STRNUM:* , ID:y

Before rewriting:

ID:x CREMENT:-- STRNUM:* ID:y

Expected tokens:

ID:a CREMENT:-- MATH:* ID:b

This is due to on line 401 of lexer.co able @tokens evaluating to false.

As mentioned by @josher19 in jashkenas/coffeescript#2370

@satyr satyr closed this as completed in ab6a645 Jun 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants