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.1.0

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.1.0
File Size Uploaded Provenance Actions
tree_sitter_strudel-2.1.0.tar.gz 58.6 kB Without provenance Details for tree_sitter_strudel-2.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 486.0 kB

Release files / tree_sitter_strudel-2.1.0.tar.gz

Download URL tree_sitter_strudel-2.1.0.tar.gz
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ca35a704e351dabe7091baf86e50ae853028fb3a760d102dc428d178566e8eb0
BLAKE2b-256 checksum
How to use checksums
8f78bf9a713639087084471aebd892e72deb6bed7b431e11095583b7408f60ea
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.1.0-cp310-abi3-win_arm64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-win_arm64.whl
Size 42.0 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
cdc4f948e79c25f7f0944507a013c74870e4e66019a4db6d855189c011d129dd
BLAKE2b-256 checksum
How to use checksums
69ee9b8a4e8e72a8a4c0a10c14329c2bff5ca1a21e12859714e0f8a41c4c7046
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.1.0-cp310-abi3-win_amd64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-win_amd64.whl
Size 41.1 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
efffd4ad4b22426cba3676ea5ffe1a3cd3321ea1548dfa7f456808f9124aa02c
BLAKE2b-256 checksum
How to use checksums
b5abdc9aee3a2a2c169f5506ecd92caa86155010b345959a316d2109aca6e21c
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.1.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 62.7 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
605cb9129983161ee66c621077e1081b3b53c575711238c49b131ed36d79535c
BLAKE2b-256 checksum
How to use checksums
ba0401bf92bce67c101cf6de5c16bf29c4e4f04cf27ea2704591f39e7fb9d8e6
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.1.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 67.1 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
a1ca99ec2dbf38539c001caf49249c8d0eecabe40ddbce208a6b61baab02a728
BLAKE2b-256 checksum
How to use checksums
7bc5dcc5b4d5fadc9a21b78a11ac533e44d097eddd09fd1a74509ed7c0f7585d
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.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 68.2 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
03a59c8f9a1f7254f08a3fcd7647c6a6599ee521accaed0142e6dccf74efa3f7
BLAKE2b-256 checksum
How to use checksums
a1c66470a0986d8e838440783860a8fae2a888b0e0fb05add1785188615bdae2
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.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 63.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
ac9110798739aaa12ff6e622ddc6115ab77b145b3ea288092deb8696eef62e56
BLAKE2b-256 checksum
How to use checksums
3da6bcc5a9b0d643152c4c14ecbc38dfbf25be62e73bd8bf3da882a2caeca1c5
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.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 41.6 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
acde1b6dd7f4ac145e1038cc6d53a837aeaeb7a8033b5bdd386d9ad53904fb69
BLAKE2b-256 checksum
How to use checksums
4ccb8e93cd5fa7fb33a32741bed6be75b5e29b3e382b3b469293dbff3c915f2c
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.1.0-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_strudel-2.1.0-cp310-abi3-macosx_10_9_x86_64.whl
Size 41.1 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
81361a42498156148d97a01bd8c5a172b681dba1d2adf1c85a3a908873af21b9
BLAKE2b-256 checksum
How to use checksums
257e4f556f64f1760387c39a3f1c8ce5c8384e6369017d53c7949fc307ca00b5
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.1.0

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