bytebeat icon indicating copy to clipboard operation
bytebeat copied to clipboard

False-positive syntax error

Open VSchris-code opened this issue 4 years ago • 2 comments

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.

VSchris-code avatar Jun 08 '21 21:06 VSchris-code

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.

darius avatar Jun 08 '21 22:06 darius

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

jan-ale avatar Mar 25 '23 23:03 jan-ale