| name | sounio-run |
| description | Compile and run a Sounio .sio file and show output |
| user-invocable | true |
| allowed-tools | Bash, Read, Glob |
Sounio Run
Compile the specified Sounio source file to a native ELF and run it.
Instructions
-
Resolve the souc compiler binary:
- Use
$SOUC_BIN or $SOUC environment variable if set
- Otherwise try
souc on PATH
- Otherwise try
./bin/souc
-
If no file argument given, find the most recently modified .sio file in the working directory
-
Set stdlib path if importing stdlib modules:
export SOUNIO_STDLIB_PATH=./stdlib
-
Run the file:
$SOUC run <file>
-
Show stdout output to the user. If there are errors, run $SOUC check <file> first to get diagnostic details, then suggest fixes.