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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f5495f6bbf7211e99b9bf8b4fe7fafd1f70ff1438b03edd69613d5f7a96675 |
|
MD5 | 086fcb0c97cb4662da62992641c02325 |
|
BLAKE2b-256 | 42194d17538b62f1075a93ce2d6d1503529c4b09c89ea7e12739fdcf5d7b55ba |
File details
Details for the file tree_sitter_cairo-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tree_sitter_cairo-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42678de97b5d3c97e73ce075612cb388f75a21fad5d6dbdf1175dd1989d3b5d0 |
|
MD5 | 576992e5da252819ba19a510e5c42f9b |
|
BLAKE2b-256 | 097a607c8efdb7d824b837a0207796d2e8ae38422a5ccbb2a2fb423df05721aa |