Skip to main content

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


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.2.0.tar.gz (425.6 kB view details)

Uploaded Source

File details

Details for the file tree_sitter_usfm3-3.2.0.tar.gz.

File metadata

  • Download URL: tree_sitter_usfm3-3.2.0.tar.gz
  • Upload date:
  • Size: 425.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_usfm3-3.2.0.tar.gz
Algorithm Hash digest
SHA256 b81b43941a1e525e8e9e0af424db987c71412398f48109c0841be54dcb897b22
MD5 54b4795ae51bfe8feef14d7ef7d5342c
BLAKE2b-256 4969d77969c272ba2c00228365e6ced9cb7092751c786e9c305aac86861fb433

See more details on using hashes here.

Provenance

The following attestation bundles were made for tree_sitter_usfm3-3.2.0.tar.gz:

Publisher: pypi_publish.yml on Bridgeconn/usfm-grammar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page