Command-line tool
Build the tool as described in Get the command-line tool. It runs on any operating system with a Java 25 runtime.
filascript-cli run FILE.fsigfilascript-cli ast FILE.fsigfilascript-cli| Command | Behavior |
|---|---|
run |
Reads, checks and activates the file, then calls its zero-argument fn main() and discards its results. print writes to standard output. |
ast |
Parses the file and prints its syntax tree. Name errors are not checked. |
none, --version or --help |
Prints the version and a usage line. |
The program has no access to files, the network or the environment. Event handlers in the file are checked but never run. Globals start from their initial values on every run.
Errors
Section titled “Errors”Problems are written to standard error, one per line:
FILE:LINE:COLUMN: CODE: message at FUNCTION (FILE:LINE:COLUMN)The at lines appear for runtime faults and list the call sites, innermost first. See
diagnostic codes.
Exit status
Section titled “Exit status”| Status | Meaning |
|---|---|
0 |
The program ran to the end. |
1 |
The file could not be read, had a diagnostic or stopped with a runtime fault. |
2 |
Wrong arguments. |