Metadata-Version: 2.4
Name: tree-sitter-usfm3
Version: 3.2.0
Summary: Usfm3 grammar for tree-sitter
Author-email: BCS Team <joel@bridgeconn.com>
Maintainer-email: Kavitha Raju <kavitha.raju@bridgeconn.com>, Joel Mathew <joel@bridgeconn.com>
License: MIT
Project-URL: Homepage, https://github.com/Bridgeconn/usfm-grammar/tree/version-3/tree-sitter-usfm3/python-Readme.md
Keywords: incremental,parsing,tree-sitter,usfm3
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: core
Requires-Dist: tree-sitter~=0.21; extra == "core"
Dynamic: license-file

# Tree-sitter-usfm3

[Tree sitter](https://tree-sitter.github.io/tree-sitter/) implementation of the [USFM](https://ubsicap.github.io/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))
```
