Skip to content

Wrongly-closed parenthesis produces a useless compile error #18

@jamshark70

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions