Blyx Direct checks saved Blyx programs and compiles them into standalone x86-64 executables. The extension includes the native compiler for your operating system and its complete Blyx source. Choose the Windows x64 or Linux x64 build for the machine hosting your workspace.
Run a program
Open a local folder you trust. Create and save reading.blyx using the example below.
Create an empty .vscode/tasks.json. From the Command Palette, run Snippets: Fill File with Snippet, choose Blyx Direct workspace tasks, and save. For a workspace that already has tasks, merge the three entries and the input into the existing configuration. Workspace task definitions
Return to the saved Blyx file. Run Tasks: Run Task and choose Blyx Direct: Check active file. The terminal displays the compiler's diagnostic on failure. A successful check exits with code 0.
Choose Blyx Direct: Build active file. Enter a new executable name such as reading-1. The compiler creates it beside the source file and refuses to overwrite an existing file. Windows adds the .exe extension.
Choose Blyx Direct: Run named build and enter reading-1 to execute that file. After editing the source, build under a fresh name and run that new build.
The output is 23 °C. The bundled starter directory contains a complete workspace with a longer version of the example. Copy the directory to a writable location before opening it.
Build from a terminal
The installed extension contains bin/blyxc on Linux and bin/blyxc.exe on Windows. With that directory on your PATH, you can check or build several source files together. Give each build a new output filename.
For Windows use reading-2.exe as the output. The target matches the installed compiler's operating system. The extension works in trusted filesystem workspaces with VS Code process tasks. The separate Blyx Language extension can supply syntax highlighting and its browser interpreter alongside this one.