ddwChucklib-livecode
ddwChucklib-livecode copied to clipboard
Wrongly-closed parenthesis produces a useless compile error
// OK version
/fmt = "\delta("@", 0.5, 0, 1, 4, 3)::\shuf("1,,2,,3,,4,,5,,6,,7,,", "@")::\stuttPitch(, 100, 0.25, 1, 1000, "2345", ".", "@")";
// wrong version
/fmt = "\delta("@", 0.5, 0, 1, 4, 3)::\shuf("1,,2,,3,,4,,5,,6,,7,,"), "@")::\stuttPitch(, 100, 0.25, 1, 1000, "2345", ".", "@")";
The "@") after shuf should print a bracket-mismatch error. Instead:
ERROR: syntax error, unexpected BINOP, expecting $end
in interpreted text
line 1 char 1:
@")::\stuttPitch(, 100, 0.25, 1, 1000, "2345", ".", "@")";
... which looks like a cll parsing bug, but it's really wrong input.
For user friendliness during performance, better to identify this case and give meaningful feedback.