Usfm3 grammar for tree-sitter
Project description
Tree-sitter-usfm3
Tree sitter implementation of the USFM language.
Installation
pip install tree=sitter
pip install tree-sitter-usfm3
Usage
import tree_sitter_usfm3 as tsusfm
from tree_sitter import Language, Parser
USFM_LANGUAGE = Language(tsusfm.language())
parser = Parser(USFM_LANGUAGE)
source_code = '\\id GEN\n\\c 1\n\\p\n\\v 1 In the begining..'.encode('utf-8')
tree = parser.parse(source_code)
print(str(tree.root_node))
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
tree_sitter_usfm3-3.2.0b4.tar.gz
(425.6 kB
view details)
File details
Details for the file tree_sitter_usfm3-3.2.0b4.tar.gz.
File metadata
- Download URL: tree_sitter_usfm3-3.2.0b4.tar.gz
- Upload date:
- Size: 425.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d787cb8828c4e4167c4863b63ffbae6087f8ea8df1d3365db27983134c7c4d67
|
|
| MD5 |
2fb3f5725458e526e811bc8502364fcb
|
|
| BLAKE2b-256 |
fffbc6f7441525e00678d10aefc08d1d12e4b5132653beb984a7850448e258a0
|
Provenance
The following attestation bundles were made for tree_sitter_usfm3-3.2.0b4.tar.gz:
Publisher:
pypi_publish.yml on Bridgeconn/usfm-grammar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tree_sitter_usfm3-3.2.0b4.tar.gz -
Subject digest:
d787cb8828c4e4167c4863b63ffbae6087f8ea8df1d3365db27983134c7c4d67 - Sigstore transparency entry: 1113848365
- Sigstore integration time:
-
Permalink:
Bridgeconn/usfm-grammar@f50e410eb8d2e41f55841d5adcc1f42e3acfba37 -
Branch / Tag:
refs/tags/v3.2.0-beta.4 - Owner: https://github.com/Bridgeconn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@f50e410eb8d2e41f55841d5adcc1f42e3acfba37 -
Trigger Event:
release
-
Statement type: