Skip to main content

tree-sitter-strdl

CI

A Tree-sitter grammar for the JavaScript subset used in Strudel compositions. It exposes a concrete syntax tree (CST) for editors, language servers, and other Tree-sitter consumers.

The parser is syntax-only. Mini-notation stays opaque string content; semantic analysis, symbol resolution, runtime evaluation, and Strudel API metadata belong in downstream tools. See grammar architecture.

Install

npm install tree-sitter-strdl tree-sitter@^0.25.0

The generated parser is committed under src/, so consumers do not need to run the generator. A Tree-sitter runtime 0.25 or newer is required because the parser uses ABI 15. See compatibility.

Node.js is the primary distribution target. Python, Rust, C, Swift, and Go bindings are retained with different support tiers; see the binding support policy.

Use

const Parser = require("tree-sitter");
const Strudel = require("tree-sitter-strdl");

const parser = new Parser();
parser.setLanguage(Strudel);

const tree = parser.parse('$: s("bd sd").gain(0.8)');
console.log(tree.rootNode.toString());

The registered scope is source.strdl, with file types strdl and strudel. Official queries provide syntax highlighting and locals. See queries for registration and usage.

Coverage and limits

Covers the evidenced Strudel JavaScript subset: declarations and assignments, calls and method chains, member access, arrow and named functions, arrays and objects, arithmetic and comparison expressions, template literals, imports and exports, blocks, and comments. Comments may use JavaScript // and /* ... */ forms or Tidal-style -- line comments.

This is not a complete ECMAScript parser. Mini-notation is not parsed, and current gaps include object shorthand, object destructuring, rest and spread arguments, default imports, logical operators, and nullish coalescing. See the syntax coverage matrix for exact status.

The public CST API is documented in grammar architecture. Node and field names are stable subject to the breaking-change policy; generated files under src/ must not be hand-edited.

Development

npm ci
python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt
make ci

make install-dev performs both dependency installs. Use make help for the full target list. See development environment for setup and platform notes, and CI for what the full gate checks.

Documentation

License

AGPL-3.0-only. See LICENSE.

Metadata

Release files for tree-sitter-strudel 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tree-sitter-strudel 2.0.3
File Size Uploaded Provenance Actions
tree_sitter_strudel-2.0.3.tar.gz 45.8 kB Without provenance Details for tree_sitter_strudel-2.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-strudel 2.0.3
File Actions
tree_sitter_strudel-2.0.3-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-win_arm64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-win_amd64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_x86_64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_aarch64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 abi3 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-macosx_11_0_arm64.whl
tree_sitter_strudel-2.0.3-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details for tree_sitter_strudel-2.0.3-cp310-abi3-macosx_10_9_x86_64.whl

Total release size: 375.5 kB

Release files / tree_sitter_strudel-2.0.3.tar.gz

Download URL tree_sitter_strudel-2.0.3.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a8c76222bd5e63de3d453628d771a420349d7bf1b25b6080203b8106d2f44999
BLAKE2b-256 checksum
How to use checksums
4059e28ac15787690e87d5124672f1081e1127c090a275cef7914f529d9b373b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-win_arm64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-win_arm64.whl
Size 34.6 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
758ebd48464e764543fbb3f648c7c9f32d275a15a2efdc35e863bd8a8489371d
BLAKE2b-256 checksum
How to use checksums
0e7251d4f6a989356206f7ec0f4adf844ef3bb1fcf1aab3d575075838f3d8cc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-win_amd64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-win_amd64.whl
Size 33.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
abf6dfbd8ef189d8b65d3dcaceaba2a5b31c44387578bdb61a6a7ea7be64fb95
BLAKE2b-256 checksum
How to use checksums
86b6af4690ec05bc328292aeec73d4f7dacaccfb1a12e48e412e57cb17416eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_x86_64.whl
Size 47.6 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
3ac0852d9fd3c5d320f186e3877e400b47480e669b369aa2d2c1515171d93c16
BLAKE2b-256 checksum
How to use checksums
53e74266e9fa1df97555c5648278e20903768b30ab1571ce5b5bd40497617fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-musllinux_1_2_aarch64.whl
Size 49.7 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
91466be2e8d4d8995bcd8e9315cd53eb3b1fd9a9ef371ad5a18338aeee98443b
BLAKE2b-256 checksum
How to use checksums
f93a5fa52f7ef88ae40657b2302f71f3dc245987efee9bee7f1eaa26a42cd422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 50.7 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
726c956eab40efa2474938d501e5c895a7f3bf4e4d0c794f909f6aa9a68befb8
BLAKE2b-256 checksum
How to use checksums
587430258f47a29d9f10b14431c754fa8450d771f69adf5f19f421a7f1fe1cf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 47.5 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
3f9e9c287905bca97f8ed7d9d4f54c3cd20b224aeafe0e52103452cc21e12ee8
BLAKE2b-256 checksum
How to use checksums
8a3d33c77d739e1b197f65962db4f54e39dc93d0e432a97f35e8f69476435444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-macosx_11_0_arm64.whl
Size 33.0 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
59f9d1183cad894ae1542383b275b475eed97a88ce185c8cdd657cd0cb52c927
BLAKE2b-256 checksum
How to use checksums
ced77c3ef532da33de1a323b8f1bb8f2bff09796ffba2c90b460dc0841e3a927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tree_sitter_strudel-2.0.3-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_strudel-2.0.3-cp310-abi3-macosx_10_9_x86_64.whl
Size 32.8 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
49e28ab1909ec2d5a23e2f3c7bd1b57d2d4b181b429930136119561c59c52f1c
BLAKE2b-256 checksum
How to use checksums
97f51f972e33bf40994077189bb5d308fa8dd2da0562f72ed27fe1ea44e6da29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for tree-sitter-strudel 2.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page