gibber-cc / gibber

An audiovisual live coding environment for the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse error: Unexpected token =>

diegodorado opened this issue · comments

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);")

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.

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.