darius / bytebeat

Coded music in HTML5
53 stars 6 forks source link

False-positive syntax error #5

Open VSchris-code opened 3 years ago

VSchris-code commented 3 years ago

So I transcripted one of the equations show in Viznut's 3rd bytebeat video and put it into the HTML5 Bytebeat, but it failed to compile due to an "unexpected token" whose token is ";". But, there isn't a token like that anywhere in the equation.

darius commented 3 years ago

I don't know. Maybe you had it in RPN mode but entered Javascript? There's a setting in the user interface to select which syntax.

jan-ale commented 1 year ago

if it was ( then it would be return ((); which is probably why it doesn't work. maybe it could be return eval("("+code+")"); so that the error is more informative