[chuck-users] Is there a way to run chuck to just check syntax?

Jack Atherton lja at ccrma.stanford.edu
Tue Jun 11 02:23:44 EDT 2019


I'm not sure if it has one, but it would be pretty straightforward to add
one -- just delete the code generated from the compilation process instead
of sporking it. See chuck_main.cpp:
https://github.com/ccrma/chuck/blob/master/src/host/chuck_main.cpp

On Mon, Jun 10, 2019 at 7:24 PM Forrest Cahoon <forrest.cahoon at gmail.com>
wrote:

> I'm looking at trying to add more to my ChucK vscode extension, and I'd
> love to be able to run chuck on the code being edited so that I can parse
> and highlight the errors.
>
> However, I don't know how you would run chuck to just generate syntax
> errors. I see there is a --silent switch, which would work for the purpose,
> but would be an unnecessary waste of resources just to get the possible
> syntax errors.
>
> Csound has a --syntax-check-only command-line option. Is there something
> like this for ChucK? If not, would it be straightforward to add one?
>
> Forrest
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20190610/68b32efa/attachment.html>


More information about the chuck-users mailing list