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
- Faust syntax documentation
- Faust Bison parser and Flex lexer source
- Faust box-tester
TODO
- Add
playgroundscript fortree-sitter build-wasm && tree-sitter web-ui?- Saw this here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824d9704e21fb80a23d2f7fe8ad2d8cd316d62c8dbe1d5b66c4b0d48062ffda0
|
|
| MD5 |
7450aceaff7e67612909965ed83bdc2c
|
|
| BLAKE2b-256 |
789d163bac0a56a745cfde8321d73ebe58d449e46e4c0626ddfd9e4b0750b677
|
Provenance
The following attestation bundles were made for tree_sitter_faust-1.1.5.tar.gz:
Publisher:
publish.yml on khiner/tree-sitter-faust
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5.tar.gz -
Subject digest:
824d9704e21fb80a23d2f7fe8ad2d8cd316d62c8dbe1d5b66c4b0d48062ffda0 - Sigstore transparency entry: 2146255798
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 44.0 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60d18e6441c480d1db51bdcc7a661e6334517d7262c567e5a8665cfa41799e38
|
|
| MD5 |
d5183b11c13be5bd88700fabfb31a03f
|
|
| BLAKE2b-256 |
8a0d19e2ba25ae54080171cc2e21e77d14bb4dd169e869e9e3da9b5a6d816397
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-win_amd64.whl -
Subject digest:
60d18e6441c480d1db51bdcc7a661e6334517d7262c567e5a8665cfa41799e38 - Sigstore transparency entry: 2146255960
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 50.9 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99977e18f656d440906a57bc6f024038f481904ec28818b211f1cca64cb0813e
|
|
| MD5 |
e15c9242dcb014753048feb6f9c8553e
|
|
| BLAKE2b-256 |
a02db8782cacfd53db5008eefafc3e32d0d72cc8025f442cd50b26f5309a7402
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
99977e18f656d440906a57bc6f024038f481904ec28818b211f1cca64cb0813e - Sigstore transparency entry: 2146255903
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 51.0 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aa80c6983c719f12318484aceaa6d68d2b89ade89b4d3382c7c2bae2c87c31a
|
|
| MD5 |
92e469cbdfc738197be01325cffd4b93
|
|
| BLAKE2b-256 |
556fc9c4ff596c6f8e7ff7b85c5c90e7153d1386775b6b65f269dd8ab15b7a52
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-musllinux_1_2_aarch64.whl -
Subject digest:
0aa80c6983c719f12318484aceaa6d68d2b89ade89b4d3382c7c2bae2c87c31a - Sigstore transparency entry: 2146255933
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 71.1 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fc3b93877717a92a76a7d9e825403bdbb18e659f6cf8fa9084a93010e6c3104
|
|
| MD5 |
a605168ef064aae1ea863e95a872cae7
|
|
| BLAKE2b-256 |
61e9da6d7b91633a1172906f5ee657646a782771779a61724fb42684450a350a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
3fc3b93877717a92a76a7d9e825403bdbb18e659f6cf8fa9084a93010e6c3104 - Sigstore transparency entry: 2146256004
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
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
- Download URL: 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
- Upload date:
- Size: 55.4 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f084f029e70aac5427b66d21e2bef602f97c577f90261349de675bf23e10b9d
|
|
| MD5 |
680dce01da9898b6e30b5668a95ff5db
|
|
| BLAKE2b-256 |
f7a2b9e0d46a42b9c5614ae4eb416ea7e55516642390b7884d548ebdbe405465
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
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 -
Subject digest:
1f084f029e70aac5427b66d21e2bef602f97c577f90261349de675bf23e10b9d - Sigstore transparency entry: 2146255829
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 42.9 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3dccd1766a5927e0faf4f959e01feb0d44658d54353e569790e921ac2f3a583
|
|
| MD5 |
5e3d49ac1a2e27b6b08a11e53dfa8900
|
|
| BLAKE2b-256 |
5ab910255be9d9f50f95a7894b7671053a79ba02c1d01908b3831e8426a8cf30
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
a3dccd1766a5927e0faf4f959e01feb0d44658d54353e569790e921ac2f3a583 - Sigstore transparency entry: 2146255866
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl.
File metadata
- Download URL: tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 40.4 kB
- Tags: CPython 3.9+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
715b045931ba3fc9e88761b5fc97acb5e3f94815c54be47463c0fcd03d200463
|
|
| MD5 |
a61ef2349b44cdbc3ac3c81d7f2527d7
|
|
| BLAKE2b-256 |
a7c7a9747e2291cb21d5c87f184085e38f6c8c19afb9e0343e76a66e7b6cf7d4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_faust-1.1.5-cp39-abi3-macosx_10_9_x86_64.whl -
Subject digest:
715b045931ba3fc9e88761b5fc97acb5e3f94815c54be47463c0fcd03d200463 - Sigstore transparency entry: 2146255990
- Sigstore integration time:
-
Permalink:
khiner/tree-sitter-faust@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/khiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4dbbc0b7243d77283dd893dd1a46d34460bfe322 -
Trigger Event:
push
-
Statement type: