You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, on Unix systems I'd like to be able to directly run this model as ./teachingConcurrency.qnt, by adding a starting hashbang line like the following:
#!/usr/bin/env -S quint verify --temporal correct
This is not currently possible because the starting # is not a valid token:
Oh, I didn't know we could use commands like this in the hasbang! This is awesome. Thanks for reporting, this should be easy to implement as you suggest :)
This is a new-feature request for Quint grammar.
I recently added an example which contains this human-readable comment:
quint/examples/classic/distributed/TeachingConcurrency/teachingConcurrency.qnt
Lines 6 to 7 in 75eac36
However, on Unix systems I'd like to be able to directly run this model as
./teachingConcurrency.qnt
, by adding a starting hashbang line like the following:This is not currently possible because the starting
#
is not a valid token:For reference, Javascript was in a similar situation and recently added hashbang support in ES14 (in 2023):
https://www.w3schools.io/javascript/shebang-examples/
I think there are two alternative ways to implement this:
#
as another starting marker for single-line comments (similar to//
and///
), anywhere in a file.#!
as a new starting marker for an hashbang line, only valid at the beginning of a file.The text was updated successfully, but these errors were encountered: