Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrongly-closed parenthesis produces a useless compile error #18

Open
jamshark70 opened this issue Aug 9, 2022 · 0 comments
Open

Wrongly-closed parenthesis produces a useless compile error #18

jamshark70 opened this issue Aug 9, 2022 · 0 comments
Labels

Comments

@jamshark70
Copy link
Owner

// 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.

@jamshark70 jamshark70 added the bug label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant