SatisScript for VS Code
Language support and a built-in runner for SatisScript .ss files. The extension includes a compiled copy of the lexer, parser, and interpreter, so you do not need a separate SatisScript checkout or Node dependencies to run scripts.
SatisScript project: SatisCorprperation/SatisScript.
Install
- Download or build
satisscript-vscode-0.1.3.vsix.
- In VS Code, open the Command Palette with
Ctrl+Shift+P (Cmd+Shift+P on macOS).
- Run Extensions: Install from VSIX... and select the
.vsix file.
- Open a
.ss file. VS Code recognizes SatisScript files automatically.
To build the VSIX from this folder, run npm run package. The generated package appears in this folder.
Use the Runner
- Open a
.ss file and select the SatisScript icon in the Activity Bar.
- In the Runner panel, press Run current file.
- Read program output and errors in the panel. Use Clear to empty the output.
You can also run the current file with Ctrl+F5 (Cmd+F5 on macOS) or SatisScript: Run Current File from the Command Palette. The runner uses the editor contents, including unsaved changes. Results are also available in View > Output, then select SatisScript.
Language Support
SatisScript includes highlighting for declarations, conditionals, for loops, arithmetic, strings, and interpolated strings. Type let, const, print, if, ifelse, for, or fstr in a .ss file to insert a snippet.
let name = "Ada";
print(f"Hello, ${name}!");
let i = 0;
for (i < 3) {
print(i);
i = i + 1;
}
The loop body repeats while its condition is true, so update the loop variable to eventually make the condition false.
Develop the Extension
Open this folder in VS Code and press F5 to launch an Extension Development Host. Run npm run package to create a distributable VSIX.