B++ runtime engine
Project description
bxengine
bxengine is a Python implementation of the B++ runtime engine.
Install
pip install bxengine
CLI
Run a file:
bxengine path/to/program.bx
Run inline code:
bxengine -e "[CONCAT \"hello\" \" world\"]"
Development
uv sync --dev
pytest
Language Server
Start the LSP server over stdio:
uv run bxengine-lsp
The server publishes syntax diagnostics from the existing tokenizer/parser pipeline.
Compatibility warnings are also reported for accepted-but-suspicious syntax:
- extra
]at top-level (ignored by compat behavior) - unclosed
[(auto-closed at EOF) - unterminated quoted strings (accepted as-is)
Included language features:
- completion of built-in B++ functions
- macro-aware completion (
@...) with current-document macro names prioritized - hover for built-in function signatures/details and macro-call symbol hints
Neovim (lspconfig) example:
require("lspconfig").bxengine = {
default_config = {
cmd = { "uv", "run", "bxengine-lsp" },
filetypes = { "bpp", "bx" },
root_dir = require("lspconfig.util").root_pattern("pyproject.toml", ".git"),
},
}
require("lspconfig").bxengine.setup({})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bxengine-1.0.1.1.tar.gz.
File metadata
- Download URL: bxengine-1.0.1.1.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b95bee6e4c5997f02f75125dc2396c900bdf6e58a4680a19a191bc76c9509b3e
|
|
| MD5 |
4750a441b2d0dd4dfd4054424172d902
|
|
| BLAKE2b-256 |
50a4a83fadea35edcd37277a07d7d8bab924674b9b95f81494e2496406649ed0
|
Provenance
The following attestation bundles were made for bxengine-1.0.1.1.tar.gz:
Publisher:
publish.yml on infernostars/bxengine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bxengine-1.0.1.1.tar.gz -
Subject digest:
b95bee6e4c5997f02f75125dc2396c900bdf6e58a4680a19a191bc76c9509b3e - Sigstore transparency entry: 1695838921
- Sigstore integration time:
-
Permalink:
infernostars/bxengine@bb0bec16d6fdc2f5e665782417bc97507806b29a -
Branch / Tag:
refs/tags/1.0.1.1 - Owner: https://github.com/infernostars
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb0bec16d6fdc2f5e665782417bc97507806b29a -
Trigger Event:
release
-
Statement type:
File details
Details for the file bxengine-1.0.1.1-py3-none-any.whl.
File metadata
- Download URL: bxengine-1.0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b601416e96874f5afc970dc858e2af384636fa86baacb069fda81d548a744b0a
|
|
| MD5 |
8f58717245c8ecf6d399a0eaf29d7eeb
|
|
| BLAKE2b-256 |
d3fb5e104b4977431b249fd08f5e14931ae8558322652c932e090b03f8cd700d
|
Provenance
The following attestation bundles were made for bxengine-1.0.1.1-py3-none-any.whl:
Publisher:
publish.yml on infernostars/bxengine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bxengine-1.0.1.1-py3-none-any.whl -
Subject digest:
b601416e96874f5afc970dc858e2af384636fa86baacb069fda81d548a744b0a - Sigstore transparency entry: 1695839039
- Sigstore integration time:
-
Permalink:
infernostars/bxengine@bb0bec16d6fdc2f5e665782417bc97507806b29a -
Branch / Tag:
refs/tags/1.0.1.1 - Owner: https://github.com/infernostars
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb0bec16d6fdc2f5e665782417bc97507806b29a -
Trigger Event:
release
-
Statement type: