A tree-sitter based typed parser for the solidity language
Project description
tree-sitter-solidity
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-solidity
Example
from tree_sitter_solidity import load_language, parse_node
from tree_sitter import Parser
language = load_language('tree-sitter-solidity', 'solidity')
parser = Parser()
parser.set_language(language)
tree = parser.parse(bytes("<some solidity 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
Close
Hashes for tree-sitter-solidity-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cc8fdf16057dd48de32de67b603f0c114db2076dddbcaf2798b0df8bfb7ace6 |
|
MD5 | 748051f4af46789e73e54111eaea8c55 |
|
BLAKE2b-256 | 225aeb7856ad959561031323b02922768cb8b39970d654847254499d88b8e9f9 |