Skip to main content

A tree-sitter based typed parser for the cairo language

Project description

tree-sitter-cairo

This is an automatically generated python package using python-tree-sitter-types.

It provides nice typed bindings for the tree-sitter raw parser.

Installation

pip install tree-sitter-cairo

Example

from tree_sitter_cairo import load_language, parse_node
from tree_sitter import Parser

language = load_language('tree-sitter-cairo', 'cairo')

parser = Parser()
parser.set_language(language)

tree = parser.parse(bytes("<some cairo code>", "utf-8"))

typed_tree = parse_node(tree.root_node)

# Your cool clean code:

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-cairo-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

tree_sitter_cairo-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tree-sitter-cairo-0.0.2.tar.gz.

File metadata

  • Download URL: tree-sitter-cairo-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for tree-sitter-cairo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 00f5495f6bbf7211e99b9bf8b4fe7fafd1f70ff1438b03edd69613d5f7a96675
MD5 086fcb0c97cb4662da62992641c02325
BLAKE2b-256 42194d17538b62f1075a93ce2d6d1503529c4b09c89ea7e12739fdcf5d7b55ba

See more details on using hashes here.

File details

Details for the file tree_sitter_cairo-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tree_sitter_cairo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42678de97b5d3c97e73ce075612cb388f75a21fad5d6dbdf1175dd1989d3b5d0
MD5 576992e5da252819ba19a510e5c42f9b
BLAKE2b-256 097a607c8efdb7d824b837a0207796d2e8ae38422a5ccbb2a2fb423df05721aa

See more details on using hashes here.

Supported by

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