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

Parse error: Unexpected token => #37

Open
diegodorado opened this issue Jun 12, 2017 · 2 comments
Open

Parse error: Unexpected token => #37

diegodorado opened this issue Jun 12, 2017 · 2 comments

Comments

@diegodorado
Copy link

I cannot evaluate this kind of expressions.

[1,2,3].find(x => x > 1);

if i wrap them inside an "evil" eval, it works...
eval("[1,2,3].find(x => x > 1);")

@charlieroberts
Copy link
Collaborator

There's some additional parsing that happens in Gibber to help isolate errors and do the various code annotations. I'll try updating the parser and hopefully that will fix this problem.

@diegodorado
Copy link
Author

Thanks. I am really impressed about your work, and I'm willing to help in what I can. I started by forking gibberwocky.midi to study the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants