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.

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

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.2
File Size Uploaded Provenance Actions
tree_sitter_strudel-2.0.2.tar.gz 45.6 kB Without provenance Details for tree_sitter_strudel-2.0.2.tar.gz

Built distributions (wheels)

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

Total release size: 373.4 kB

Release files / tree_sitter_strudel-2.0.2.tar.gz

Download URL tree_sitter_strudel-2.0.2.tar.gz
Size 45.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7492adf909d7a4917b457dd49cbbd76790d4379746ef35749d0d4bc0b4ad79bb
BLAKE2b-256 checksum
How to use checksums
d3eb7731d80ca49308367f004d423b2181cadfb3576db4d1571cf29ac739f585
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.2-cp310-abi3-win_arm64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-win_arm64.whl
Size 34.4 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
1b51e5f32d85a888fda28cd3ad5333559da61e235950d5962820b8454bac96cc
BLAKE2b-256 checksum
How to use checksums
84198492e2423d925c403bdc8be9284c94d0fb43440ea226ef9a2557ae21c9fe
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.2-cp310-abi3-win_amd64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-win_amd64.whl
Size 33.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
040e5808b669acba512865b2dc4e43b87e189274a3b769360bd25eddb89dc07d
BLAKE2b-256 checksum
How to use checksums
9a705ccc3138b894b36f9b3cff2274f609ba0824c54ae34eb68f3411c66ed8f0
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.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 47.2 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
6b363c18c26ac71d62171f036d6adedebeaa066fa5947197627d81f27cacf6d8
BLAKE2b-256 checksum
How to use checksums
39dc07e4475d29ddaed70c6768131494fbe3cb88163bfa1da2a1e12e76697313
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.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-musllinux_1_2_aarch64.whl
Size 49.4 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
a6a1bb9a8641eac74b2489e98fec9698866648ed778276886070fcffea062bfe
BLAKE2b-256 checksum
How to use checksums
f86abceedf45feaf5810bfbcc5b53e8457b6b1c466f7eab1d208bee57f366018
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.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 50.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
beb288e9388551573a5245a2107d16372d6ad3050815453754fff1b41fabce5e
BLAKE2b-256 checksum
How to use checksums
5565a08083bbd72756ffd58840fbd0057564c76d38215297fde5cbad62d0ba59
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.2-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 47.1 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
1c5079f3c9d2a7a580dca3c02b52040df5eab730dcc3bf9489d497280a7acaed
BLAKE2b-256 checksum
How to use checksums
ac183c94d7a24c11562876053424eadac8a69cc1f80808da425803f55dd87340
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.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-macosx_11_0_arm64.whl
Size 32.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cd79675cb9b2c4f49d9050a031dc8f3901158dfdf3f76f1d94bfe894b1def744
BLAKE2b-256 checksum
How to use checksums
35119945fba32f84c1373e40b54f99a7e222fbfe0631e4379653615436a8e66b
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.2-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_strudel-2.0.2-cp310-abi3-macosx_10_9_x86_64.whl
Size 32.6 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
72bf07286d75930b78a923f229f11cb303b5479c8c331f5212b84abb750f6ce0
BLAKE2b-256 checksum
How to use checksums
fecda7aece6868d5342310a77acd40d45bdc2231a40751714cc9fbf4f09045aa
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.2

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