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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for tree-sitter-cairo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 39e760f361f58d35e7d0a0f455c277eefa54c34ed3c73a983401c0b295c62a85
MD5 4f169f428c3d8ea21a3a99b0e5215c61
BLAKE2b-256 1398983e85f06c817f7073d5c76b7493ba3d5bcd11dad4a15260810fcfbd3fa5

See more details on using hashes here.

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