EternaScript Syntax Error In // Comments.

EternaScript improperly processes //commented out lines

Create an empty script, Evaluate, this leads to no syntax errors.
Now add

//for (var v in foo)
// Lib.fold(“AAUUCCGG”);

Click evaluate again, and it will report syntax errors for a missing ‘}’.

I expect this is due to improper preprocessing of the script. It appears that something is looking for instances of ‘Lib.fold(…);’ and expanding it into something different and does not handle the case that it occurs inside of comments and inside of for loops at the same time.

The same will occur with all of the Lib commands, out, outln, and so forth. The bug will not occur if there is gibberish inside the for loop without a semicolon.

1 Like