Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bxengine-0.3.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bxengine-0.3.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file bxengine-0.3.1.tar.gz.

File metadata

  • Download URL: bxengine-0.3.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bxengine-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8349043973eb76601096fef8d628810249241b1061ad4d1c013ee5e7f58b3c07
MD5 222455ad883ce896ee2d83897da0e32c
BLAKE2b-256 ae0930feefc7114ab60c14ee369395fff7ff783210b1895d1276b53ab2edf69a

See more details on using hashes here.

Provenance

The following attestation bundles were made for bxengine-0.3.1.tar.gz:

Publisher: publish.yml on infernostars/bxengine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bxengine-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: bxengine-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bxengine-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14c938b392b8c6fd169c5856b65d9c8bfdc359dcc69009ba79c88227f8e16b37
MD5 d1c5cd47b20dec7b881c3ee3bfc32fc5
BLAKE2b-256 09af0904c40b2b0320ee2e0c83cc94e53c106a87397997f317707703aa076120

See more details on using hashes here.

Provenance

The following attestation bundles were made for bxengine-0.3.1-py3-none-any.whl:

Publisher: publish.yml on infernostars/bxengine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page