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.0.0b11.tar.gz
(374.7 kB
view details)
File details
Details for the file tree_sitter_usfm3-3.0.0b11.tar.gz
.
File metadata
- Download URL: tree_sitter_usfm3-3.0.0b11.tar.gz
- Upload date:
- Size: 374.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc19f91f0aa99ceacfbf8aae34a36d307e019788e1e5a4dc957175b12e670ee |
|
MD5 | b0fadccf20507f797aa77dcf3aed7a84 |
|
BLAKE2b-256 | 1666c2db625920ecddad3e00fdd3899be826afe78fa8d975e45c201bf57a9a3a |