BSBL for Visual Studio Code
Edit and run Brackets for Secured Blockchain implimentation Language files
using the bundled Bracket Implimeter 0.1.1 compiler.
Publisher: aditya-bsbl. Extension ID: aditya-bsbl.bsbl-language.
Install
- Download
bsbl-language-aditya-bsbl-0.1.0.vsix.
- In VS Code, open Extensions with Command+Shift+X on Mac.
- Click the … menu at the top of Extensions.
- Choose Install from VSIX…, then select the downloaded file.
- Reload VS Code if it requests it.
After the publisher makes the Marketplace listing available, you can also
search Extensions for @id:aditya-bsbl.bsbl-language and choose Install.
The compiler is included. Python 3.10 or newer must be installed on the
machine where VS Code runs the extension. Your existing compiler installation
does not need to be moved or configured. Local console input is supported on
macOS and Linux by the bundled compiler.
Your first program
Open the Command Palette with Command+Shift+P, select BSBL: New Program,
and save it as hello.bsbl in a folder you trust. It starts with:
||
text name = in("Your name: "):
write("Hello, " + name):
write(nl):
backto 0:
||
Click ▶ at the top right of the editor, or choose BSBL: Run Program in
the Command Palette. Type your answer in the Terminal panel and press Enter.
The Output panel does not accept input. Typing BSBL source directly into zsh
does not run it; save it in a .bsbl file and use the Run command.
Features
- Syntax highlighting for
.bsbl, including the three loop delimiters.
- Bracket matching, quotes and
// comments.
- Snippets:
bsbl, entry, in, write, pure, export, for, while,
do, if, record, and math. Use Insert Snippet or completion to select.
- Basic built-in completions and hover explanations.
- Compiler errors in the Problems panel when saved files are checked.
- BSBL: Check Program, BSBL: Build Bytecode, and BSBL: Run Program.
- A status-bar Run button while editing BSBL.
- Bundled compiler and runnable examples; no compiler download step.
Build writes build/<filename>.bsbi beside your source file. Run uses current
saved source and executes through the compiler's own VM. Save changes first;
the extension will offer to save when you run. Library files containing only
exports need the compiler's --function workflow; the Run button starts an
entry program with || ... ||.
Python setting
Automatic discovery tries python3 and standard macOS/Linux locations (or
python on Windows). If it cannot find Python 3.10+, run BSBL: Configure
Python and set Bsbl: Python Path to your Python executable, for example
/opt/homebrew/bin/python3. Supply an executable path, without arguments.
The interpreter setting is machine scoped. The extension always runs the
bundled compiler, not a script picked from a project folder. Python runs in
isolated mode without site initialization to prevent workspace modules such
as json.py from replacing the compiler's standard-library imports.
Trust and limits
Opening a file does not execute a BSBL program. In a trusted workspace, checks
run on saved files; the Run command executes code only when invoked.
Restricted Mode keeps highlighting and snippets but disables compiler processes.
The extension passes program paths as process arguments rather than assembling
shell command strings. It does not request model credentials, read wallets,
download dependencies at runtime, or send telemetry.
The bundled compiler remains an early prototype with finite work/output/input
limits. Interactive programs have a default 60-second total deadline, including
typing, unless a narrower pt/host limit applies. It implements the current
language subset, not a blockchain node, AI service, native backend or debugger.
This extension has no breakpoint debugger, full language server, or global
type-aware IntelliSense. See BSBL: Open Getting Started Guide and the bundled
compiler guide for current syntax and limitations.
Development
npm ci
npm test
npm run test:integration
npm run package
Packaging refreshes the compiler from the parent BSBL project and creates a
VSIX under the project's output directory. Development packages are excluded
from the VSIX; there are no Node runtime dependencies. Tests cover the grammar,
safe process arguments, real compiler checks and VS Code extension-host behavior.
Installation follows the VS Code VSIX workflow.
The editor integration uses the official language configuration
and Workspace Trust APIs.