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.0b3.tar.gz
(425.6 kB
view details)
File details
Details for the file tree_sitter_usfm3-3.2.0b3.tar.gz.
File metadata
- Download URL: tree_sitter_usfm3-3.2.0b3.tar.gz
- Upload date:
- Size: 425.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9c9051a43c1ee0bb4e415c91de6330019f2fa5e26144bf66739367a5074baf
|
|
| MD5 |
d14756c94a66a8d8971be8c39589125c
|
|
| BLAKE2b-256 |
5043139dba93670ae38eb098d8bbf478e4ad94183773cfbcf94f81d3cc5b866a
|