Prebuilt tree-sitter grammars for Semble
Maintained. Last release 4 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install semble-grammarsREADME as published on PyPI with version 0.1.2.
semble-grammars
Prebuilt tree-sitter grammars for Semble
Compiled tree-sitter grammars for Semble.
The package installs a platform-specific grammar archive and extracts individual libraries to a local cache on first use. It does not access the network at runtime.
Installation
pip install semble-grammars
Usage
from semble_grammars import get_parser
parser = get_parser("python")
tree = parser.parse(b"def hello(): pass")
available_languages() lists the bundled languages. The package supports
macOS arm64 and x86-64, Linux arm64 and x86-64, and Windows arm64 and x86-64.
Included grammars (77)
The canonical names accepted by get_parser() are:
asciidoc, astro, bash, batch, c, clojure, cmake, cpp,
csharp, css, dart, dockerfile, dtd, elixir, embedded_template,
erlang, fortran, gitignore, go, gotmpl, graphql, groovy,
haskell, hcl, heex, html, ini, java, javascript, ,
, , , , , , , ,
, , , , , , ,
, , , , , , ,
, , , , , , , , ,
, , , , , , , ,
, , , , , , , .