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.0b10.tar.gz
(705.3 kB
view hashes)
Close
Hashes for tree_sitter_usfm3-3.0.0b10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af7c042727cce10c9cbc721af3bfda2b527c93c12221b9e620e17349571fc6f |
|
MD5 | a6e376f58750873814b49843d9488832 |
|
BLAKE2b-256 | 1efcbcb664cf6eda623b07b987a2c2e9523ecae44fea3ee0f7bce336ac798204 |