Skip to main content

Tree-sitter grammar for the Faust audio programming language

Project description

tree-sitter-faust

Tree-sitter grammar for the Faust audio programming language.

Every Faust syntax feature should be supported. If you encounter any errors parsing a valid Faust program, please file an issue and I'll fix it! Also, please file an issue or pull request if you have any suggestions for improving the grammar.

The npm package is here.

Python

pip install tree-sitter-faust[core]
from tree_sitter import Language, Parser
from tree_sitter_faust import language

code = 'import("stdfaust.lib"); process = os.osc(440) * 0.5;'

parser = Parser(Language(language()))
tree = parser.parse(code.encode())

Bundled queries are also available as HIGHLIGHTS_QUERY, INJECTIONS_QUERY, and LOCALS_QUERY.

Install nvim-treesitter language parser

The parser and queries are available as an nvim-treesitter language.

Install with the nvim command:

:TSInstall faust

Commands

$ npm run build # generate and build
$ npm run generate # tree-sitter generate
$ npm test # tree-sitter test
$ npm run parse # tree-sitter parse

See tree-sitter's documentation for details on tree-sitter CLI commands.

Resources

TODO

  • Add playground script for tree-sitter build-wasm && tree-sitter web-ui?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_faust-1.1.5.tar.gz (62.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl (44.0 kB view details)

Uploaded CPython 3.9+Windows x86-64

tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl (50.9 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl (51.0 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (71.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl (42.9 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl (40.4 kB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_faust-1.1.5.tar.gz.

File metadata

  • Download URL: tree_sitter_faust-1.1.5.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tree_sitter_faust-1.1.5.tar.gz
Algorithm Hash digest
SHA256 824d9704e21fb80a23d2f7fe8ad2d8cd316d62c8dbe1d5b66c4b0d48062ffda0
MD5 7450aceaff7e67612909965ed83bdc2c
BLAKE2b-256 789d163bac0a56a745cfde8321d73ebe58d449e46e4c0626ddfd9e4b0750b677

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5.tar.gz:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 60d18e6441c480d1db51bdcc7a661e6334517d7262c567e5a8665cfa41799e38
MD5 d5183b11c13be5bd88700fabfb31a03f
BLAKE2b-256 8a0d19e2ba25ae54080171cc2e21e77d14bb4dd169e869e9e3da9b5a6d816397

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 99977e18f656d440906a57bc6f024038f481904ec28818b211f1cca64cb0813e
MD5 e15c9242dcb014753048feb6f9c8553e
BLAKE2b-256 a02db8782cacfd53db5008eefafc3e32d0d72cc8025f442cd50b26f5309a7402

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0aa80c6983c719f12318484aceaa6d68d2b89ade89b4d3382c7c2bae2c87c31a
MD5 92e469cbdfc738197be01325cffd4b93
BLAKE2b-256 556fc9c4ff596c6f8e7ff7b85c5c90e7153d1386775b6b65f269dd8ab15b7a52

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3fc3b93877717a92a76a7d9e825403bdbb18e659f6cf8fa9084a93010e6c3104
MD5 a605168ef064aae1ea863e95a872cae7
BLAKE2b-256 61e9da6d7b91633a1172906f5ee657646a782771779a61724fb42684450a350a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f084f029e70aac5427b66d21e2bef602f97c577f90261349de675bf23e10b9d
MD5 680dce01da9898b6e30b5668a95ff5db
BLAKE2b-256 f7a2b9e0d46a42b9c5614ae4eb416ea7e55516642390b7884d548ebdbe405465

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3dccd1766a5927e0faf4f959e01feb0d44658d54353e569790e921ac2f3a583
MD5 5e3d49ac1a2e27b6b08a11e53dfa8900
BLAKE2b-256 5ab910255be9d9f50f95a7894b7671053a79ba02c1d01908b3831e8426a8cf30

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 715b045931ba3fc9e88761b5fc97acb5e3f94815c54be47463c0fcd03d200463
MD5 a61ef2349b44cdbc3ac3c81d7f2527d7
BLAKE2b-256 a7c7a9747e2291cb21d5c87f184085e38f6c8c19afb9e0343e76a66e7b6cf7d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl:

Publisher: publish.yml on khiner/tree-sitter-faust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page