« Previous: Bytecode and Native Builds · Guide Index · Next: Package Manager »
The qs executable is both a language runner and a small toolchain. This
chapter lists every command it accepts.
qs # interactive REPL
qs <file.qs> # run with the tree-walk interpreter
qs run <file.qs|.qvm> # run with the bytecode VM
qs vm <file.qs|.qvm> # run with the bytecode VM (alias)qs build <file.qs> [-o out.qvm] # compile to .qvm bytecode
qs native <file.qs> # emit native C (a_native.c)
qs compile <file.qs> [output] # compile to a native binarySee Bytecode and Native Builds.
qs check <file.qs> # validate syntax without executing
qs fmt <file.qs> # format source code
qs lint <file.qs> # report common mistakes
qs doc <file.qs> # generate documentation from comments
qs profile <file.qs> # profile function calls
qs test [directory] # run *_test.qs filesqs init # scaffold a new project
qs install <url> # install a package
qs list # list installed packages
qs remove <package> # remove a package
qs home # print the QUANTO_HOME directorySee Package Manager.
qs version # print the version
qs help # show usage| Flag | Effect |
|---|---|
--dump-bytecode |
print compiled bytecode to standard error |
--trace |
print a per-instruction VM trace |
--sandbox [path] |
restrict file access to the given path |
qs vm --dump-bytecode program.qs
qs --sandbox ./data script.qsPackage Manager covers installing and managing packages.
« Previous: Bytecode and Native Builds · Guide Index · Next: Package Manager »