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.2.0.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.2.0-cp39-abi3-win_amd64.whl (44.0 kB view details)

Uploaded CPython 3.9+Windows x86-64

tree_sitter_faust-1.2.0-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.2.0-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.2.0-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.2.0-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.2.0-cp39-abi3-macosx_11_0_arm64.whl (42.9 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

tree_sitter_faust-1.2.0-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.2.0.tar.gz.

File metadata

  • Download URL: tree_sitter_faust-1.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 735b713fb029495883ed0261e4ff80f7ba5d4dd26ea158020d116f46fc9d3fe0
MD5 c4b2884d0a871e38ba52fb5b1e14d4a8
BLAKE2b-256 8b4aba8da6ae37b96bc12b3de433f525ffa89abbdc9a7bbe05c9a5027b051088

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0.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.2.0-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ac42b2a62933932972017a8efa56ce471d9400f709cdd6c1c95b29090dfea64e
MD5 e25091dc0a3b39d97404cc7996144d1d
BLAKE2b-256 556a0f9999ac28e233154fb39932330d34a80146500c1b8243596eb0abcd25c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8bc5f6fdc95a8d9d0d5bef228724cce97b2cffa0db08922ad7eeae9f82504c08
MD5 445c7c46fdd2c588044a9d3a71c80180
BLAKE2b-256 c238bda4783c430c7a75a18b8a7208f35ffa009d41ce79c081015bcf1603f0a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0578be81da6f769967c63598bb972b63946c0d374820ca017bc0b09ea777bf30
MD5 42f8050d2e6409baa5b6ebf72c03dcdf
BLAKE2b-256 16b5703b0d9439b4a08a6196cec7a4c69ca555a86b308768c32d51360080048f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 912bbca534d5825ff2eed03153f47cc6dd485c51ce35d2fde5b924abc3298f98
MD5 fee62e999f9fc9da94524dc94b4c7cfd
BLAKE2b-256 a6732ebdd41cf9a822214ff1afd8f77360854984c504552568f81b0c197a007a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-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.2.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3a934d58024a4fda363e2910605575ae8013b5f59c7840ed369d4ba772d36de
MD5 4deae33b28914ae678c532f98dde7bc3
BLAKE2b-256 82db978fd8cbcfcd851b2e2104757a18042242b1ce72f7e671c9a2db442d8796

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a0dd41041d1bf5757755ff84603d3b1a7e48bbb4168631ddbe9cb7d2a76ff96
MD5 86a7c698ed45af5c602451baa603de38
BLAKE2b-256 18187d637781558e48073dc313165c7e26303fafd42d31dc4df0decee73acbc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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.2.0-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_faust-1.2.0-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6c09599286493164ab0692050c0ec32d0a234acb4b488274a0a2e931e72ea611
MD5 e6e41ad7d40eddd68d269302418bf0d1
BLAKE2b-256 96e125f3181fa3ad0dc75c46d57344a36ee40fd6b4f56a687c1727ff6e62478d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_faust-1.2.0-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