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