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.1.0.tar.gz
(403.4 kB
view details)
File details
Details for the file tree_sitter_usfm3-3.1.0.tar.gz.
File metadata
- Download URL: tree_sitter_usfm3-3.1.0.tar.gz
- Upload date:
- Size: 403.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e00dab12aa441c9c76dbc781c41cd39dcb5ee9c6cb7fc42c541adfb8118b29c
|
|
| MD5 |
20e568047cb3d12ff2e00def1eafa5e9
|
|
| BLAKE2b-256 |
bf29b5e9022af9f8638b3c66eba4b2471dca53ee69438c255738136b5e434987
|