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
Built Distribution
Close
Hashes for tree-sitter-solidity-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4396e80e9d4546d3e97d862f4a7739d08ca1f859cbec8de48c7e975e6754c5b5 |
|
MD5 | 6bac49ebce3cedec1f52f4ff6c6b8724 |
|
BLAKE2b-256 | 7fa352f0a2fb4d0b3d1cccc12524009824819580c5579b14d1c2f153177ac388 |
Close
Hashes for tree_sitter_solidity-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cb4a7d8b008fec3feac979bc85f65dcae3ee1dd79dad9a09b3980e5fc8060ae |
|
MD5 | f74c52c7f9af17bb53401fd4e94a2af8 |
|
BLAKE2b-256 | f7c43bcf4a092d1a47451ec7c76f6ac9fdc346fe806147a1daeead70cd508510 |