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.0b14.tar.gz
(374.7 kB
view details)
File details
Details for the file tree_sitter_usfm3-3.0.0b14.tar.gz
.
File metadata
- Download URL: tree_sitter_usfm3-3.0.0b14.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 | 46463b100c8e7b81a9cded2126a23448ca3346282981dfaf416168bb3b6462b3 |
|
MD5 | cafcd8e8214c314ccf9559096e678e15 |
|
BLAKE2b-256 | 702d0a175e54a5472691d5e7f55a9b7f64aabb54b00e95d5422d3b7fc009dfe0 |