Skip to main content

tree-sitter-yarn-spinner

A tree-sitter grammar for Yarn Spinner, a dialogue system for interactive fiction and games.

⚠️ This tree-sitter parser is in early development and might have incomplete or incorrect grammar rules.

The grammar rules are based on the Yarn Spinner ANTLR 4 grammar files YarnSpinnerLexer.g4 and YarnSpinnerParser.g4 from the Yarn Spinner repository.

The grammar file in this repository is grammar.js with the external scanner in src/scanner.c and a generated src/grammar.json file.

Bindings

This parser can be used with various programming languages that support tree-sitter. Here are some examples:

Rust:

cargo add tree-sitter-yarn-spinner

JavaScript / TypeScript / Node.js:

pnpm install tree-sitter-yarn-spinner

Python:

uv add tree-sitter-yarn-spinner

Build

To build the parser, you need to have a JavaScript runtime like Node.js and a C compiler (like gcc, clang, or MSVC on Windows) installed.

Then, run the following command in the root directory of this repository, to install dependencies and generate the parser:

pnpm install
tree-sitter generate

To test the parser, you can run:

tree-sitter parse YOUR_FILE.yarn

Details can be found in the tree-sitter documentation.

License

This project is licensed under the MIT License.

Metadata

Release files for tree-sitter-yarn-spinner 0.0.7

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-yarn-spinner 0.0.7
File Size Uploaded Provenance
tree_sitter_yarn_spinner-0.0.7.tar.gz 38.6 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-yarn-spinner 0.0.7
File
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_s390x.whl CPython 3.10 abi3 Linux musl 1.2+ IBM System/390x Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_ppc64le.whl CPython 3.10 abi3 Linux musl 1.2+ PowerPC 64-le Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl CPython 3.10 abi3 Linux glibc 2.17+ IBM System/390x, Linux glibc 2.28+ IBM System/390x Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl CPython 3.10 abi3 Linux glibc 2.17+ PowerPC 64-le, Linux glibc 2.28+ PowerPC 64-le Details
tree_sitter_yarn_spinner-0.0.7-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
tree_sitter_yarn_spinner-0.0.7-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
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details

Total release size: 494.6 kB

Release files / tree_sitter_yarn_spinner-0.0.7.tar.gz

Download URL tree_sitter_yarn_spinner-0.0.7.tar.gz
Size 38.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7672ce26f3998cba8a40c8972692c8ff5b023febf1b17057596eda966ad8d42a
BLAKE2b-256 checksum
How to use checksums
d60c3714ed9d736eef5fc9db1675c95b409f5117d15dcc54bac03f7354319c0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_arm64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_arm64.whl
Size 22.6 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
8575ae7709569c97bec873ec3c810ff57cab9459aa059035c0913ce6d4c11602
BLAKE2b-256 checksum
How to use checksums
4d3089b95ebd0d5742499e46562694549cdabab4a3a5fc25f360a51cb5360e5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_amd64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-win_amd64.whl
Size 23.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0b25998539abca8ea8c18eb536a82c8249ef4ba60b43a942506e84ff37b87bf5
BLAKE2b-256 checksum
How to use checksums
2155ca91269be730f63d3d8e3b3bf83057153f0c7a2b15110e16d0e15869c126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_x86_64.whl
Size 43.6 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
9229517fa6702486d47986194b9b55685a76408ca4b2016a9326be2339316271
BLAKE2b-256 checksum
How to use checksums
cb2e3f8f00701086bd17136a8fe9ff64d07336885c0b719959a3fecaed27cf24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_s390x.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_s390x.whl
Size 46.7 kB
Tags CPython 3.10 Linux musl 1.2+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
7c4fe86b3f696d1125651162faa4690c184f45d0e9d7cae7f7e61ee8d28d55e3
BLAKE2b-256 checksum
How to use checksums
5a8c78c9bd08a943770cf6249bfcf0945e6eb2314a622a52132169bb245039ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_ppc64le.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_ppc64le.whl
Size 45.5 kB
Tags CPython 3.10 Linux musl 1.2+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
08d8c3a8baa36f2f9b3d991a21a552853a1f339a9bc8df9bebfe58a5eb4f8e0a
BLAKE2b-256 checksum
How to use checksums
180a7dfc79b223047d887d2307dbe38f5c5ebefb5bc79473d872682d10d00eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-musllinux_1_2_aarch64.whl
Size 44.7 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
bdefc375320dbd91e415eae217626d907934b1ffd5851121913eb28a1a9bc0f7
BLAKE2b-256 checksum
How to use checksums
5e44a2c694f0d4075c8e1eb5f42434fc50d4b2fd35b689e7e05dcb58610e1786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl
Size 47.8 kB
Tags CPython 3.10 Linux glibc 2.17+ IBM System/390x Linux glibc 2.28+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
8b2578101e5962ea5387011fabada7e289072fb0629aff5d250ee6005b9c9270
BLAKE2b-256 checksum
How to use checksums
6e15a2dd10b4336c14f31fe5a1e6c3b79bab6aebb49ced121047d1ac2c3a3eb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl
Size 46.5 kB
Tags CPython 3.10 Linux glibc 2.17+ PowerPC 64-le Linux glibc 2.28+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
1fb19b28a43a3c309029abf90d18c34a366c29baf4ec3e6404a6a08209e78558
BLAKE2b-256 checksum
How to use checksums
683ae68874d70860062a44dd3cb6038fe48d9d53f3174b7f48385936fb9eaac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 46.3 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
cc73ff4e6979dbdf10dcc6ad26bd4d029d3e6969e3c03c7a8c98f4a6398f19c5
BLAKE2b-256 checksum
How to use checksums
fe7174ccf811d930b7a4fadcd187f375b1cef18bab4fb5f2f2858380fb859598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 44.3 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
c1ae93022321397f7f53df20c8ce5054f6d90283a7a6423e38c5d8e56fd58082
BLAKE2b-256 checksum
How to use checksums
d2d4414d9cea0196827c660a794b89423a72d52d2e303f7a248af305c7596fce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_11_0_arm64.whl
Size 22.3 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b8d6a8dc2d574fe98b34ce5151f9dffe489c7b55e8a0794fbc2338412070290d
BLAKE2b-256 checksum
How to use checksums
ea91be7f05e71621bdc1f54838543df2a5c92cdc24a6055e8b13b0f7b3caad57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_yarn_spinner-0.0.7-cp310-abi3-macosx_10_9_x86_64.whl
Size 21.8 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
6df155a1d8cfcf1cd71124083d97a8c0f951a1ed1a1e89a4c8776fefab374428
BLAKE2b-256 checksum
How to use checksums
2b9cd6635fc7302d8375d99e4b2559f8b7a03d656630f13df29b2b1f84957c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Security for tree-sitter-yarn-spinner 0.0.7

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.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for tree_sitter_yarn_spinner-0.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.7 This release

13 release files Full provenance

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