tree-sitter-gosu
A Tree-sitter grammar that parses Gosu, a statically typed, JVM-based general-purpose programming language.
Requirements
- Python
>=3.14 - Poetry
2.2 - Node.js (for
tree-sitter-cli, used to regenerate the parser fromgrammar.js) - A C compiler (MSVC on Windows, GCC/Clang on Linux/macOS) to build the native extension and run
tree-sitter test/tree-sitter parse
Installation
poetry install
Usage
import tree_sitter
import tree_sitter_gosu
language = tree_sitter.Language(tree_sitter_gosu.language())
parser = tree_sitter.Parser(language)
tree = parser.parse(b"class Foo { function bar(): int { return 1 } }")
Development
Install dependencies
poetry install
Run tests with coverage
poetry run pytest --cov=tree_sitter_gosu tests --cov-report html
Format and lint
poetry run black tree_sitter_gosu; poetry run pylint tree_sitter_gosu
Regenerate the parser from grammar.js
npm install
npx tree-sitter generate
npx tree-sitter test
Configuration
Set the TREE_SITTER_GOSU_CONFIG_DIR environment variable to override the default configuration directory.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for tree-sitter-gosu 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_gosu-0.3.0.tar.gz | 144.1 kB | Without provenance | Details for tree_sitter_gosu-0.3.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tree_sitter_gosu-0.3.0-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details for tree_sitter_gosu-0.3.0-cp314-cp314-win_amd64.whl |
| tree_sitter_gosu-0.3.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 | Details for tree_sitter_gosu-0.3.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
| tree_sitter_gosu-0.3.0-cp314-cp314-macosx_26_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 26.0+ ARM64 | Details for tree_sitter_gosu-0.3.0-cp314-cp314-macosx_26_0_arm64.whl |
Total release size: 354.0 kB
Release files / tree_sitter_gosu-0.3.0.tar.gz
| Download URL | tree_sitter_gosu-0.3.0.tar.gz |
|---|---|
| Size | 144.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
396c9b5f9df13e4e19e1d53632014b7a88b8539892b967f1fc002405fb9a5f65
|
|
BLAKE2b-256 checksum How to use checksums |
6499f4d36cda3f0c7ed1922879c39147af063bcf7fad36ab2ac4072350f7954f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Release files / tree_sitter_gosu-0.3.0-cp314-cp314-win_amd64.whl
| Download URL | tree_sitter_gosu-0.3.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 49.0 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1d3a4f4b0a8fbce003d74ee63f5daf3f6bcea8f250c0e8fd89c214ad0280f339
|
|
BLAKE2b-256 checksum How to use checksums |
fbee7c49ecf9b5630bd3f64c9d70144eaa4a47e963da852c98c5434304738ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Release files / tree_sitter_gosu-0.3.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | tree_sitter_gosu-0.3.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 70.7 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
6261743f8b713dd2c0a21130b22f7b02524efacf925b4fdcd2ac507540ed0a1e
|
|
BLAKE2b-256 checksum How to use checksums |
9f62153efb9b239ebbe30b52c56b2980b41d42d3fa4c790bddfb78e4d5ea1661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Release files / tree_sitter_gosu-0.3.0-cp314-cp314-macosx_26_0_arm64.whl
| Download URL | tree_sitter_gosu-0.3.0-cp314-cp314-macosx_26_0_arm64.whl |
|---|---|
| Size | 90.1 kB |
| Tags | CPython 3.14 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
49d1a760ae6b99adab8915bf86166269fefa968166e8e25360349b2f2c5a2c0c
|
|
BLAKE2b-256 checksum How to use checksums |
adea4078efd2447f295c0efdf03328b080452334ad14abacb3701d43cca82d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.9
|
Security for tree-sitter-gosu 0.3.0
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.