Skip to main content

🌴 tree-sitter-solidity

Node.js CI npm version

💡 this grammar is still in development, the structure of the generated AST is not stable

This repository contains a grammar for tree-sitter.

The goal of this project is to provide an parser efficient low-dependency parser for solidity which targets most solidity versions in use and is designed for enabling metaprogramming.

Navigating this repository

The primary file in this repository is grammar.js which describes the tree-sitter grammar.

# Primary file:
grammar.js
# Tests:
/test/**/*

# Auto generated:
/src/**/*
index.js
binding.gyp

References

-> Ethereum solidity grammar:

-> Tree-sitter javascript grammar: https://github.com/tree-sitter/tree-sitter-javascript/blob/master/grammar.js

-> Solidity antlr grammar: https://github.com/ConsenSys/solidity-parser-antlr

Major inspriration & some structures have been taken from tree-sitter-javascript, a big thanks to the contributors to this repo!

Metadata

Release files for tree-sitter-solidity 1.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tree-sitter-solidity 1.2.13
File Size Uploaded Provenance Actions
tree_sitter_solidity-1.2.13.tar.gz 158.8 kB Without provenance Details for tree_sitter_solidity-1.2.13.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tree-sitter-solidity 1.2.13
File Actions
tree_sitter_solidity-1.2.13-cp38-abi3-win_arm64.whl CPython 3.8 abi3 Windows ARM64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-win_arm64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-win_amd64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-musllinux_1_2_x86_64.whl CPython 3.8 abi3 Linux musl 1.2+ x86-64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-musllinux_1_2_x86_64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-macosx_11_0_arm64.whl
tree_sitter_solidity-1.2.13-cp38-abi3-macosx_10_9_x86_64.whl CPython 3.8 abi3 macOS 10.9+ x86-64 Details for tree_sitter_solidity-1.2.13-cp38-abi3-macosx_10_9_x86_64.whl

Total release size: 687.1 kB

Release files / tree_sitter_solidity-1.2.13.tar.gz

Download URL tree_sitter_solidity-1.2.13.tar.gz
Size 158.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5de530ee9a3d18632396c55cd51f87fd4a7dae8ebac117eb63e52b4d3bc4a7c1
BLAKE2b-256 checksum
How to use checksums
ed6ec40fcf4018302b110d48e02e2fd8128e9a009669cae04ba8e3c849e293fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-win_arm64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-win_arm64.whl
Size 61.1 kB
Tags CPython 3.8 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
5caa0b2eafdb5e27e3f035732a6ccca5758231befb08f6adc4287b5e118ab8d2
BLAKE2b-256 checksum
How to use checksums
5537316728600710cb8f24dbbcc6f1471b808d722285a65badb7dfc7c500fa94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-win_amd64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-win_amd64.whl
Size 69.2 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3f700a305167e39b984d38dceddf45a56e898124a923bf5cb6bb4b149c2c7063
BLAKE2b-256 checksum
How to use checksums
5773f546c9f85cea28da4bb8abb4c0f4efb05694497a5c7d5a222dce6451abc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-musllinux_1_2_x86_64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-musllinux_1_2_x86_64.whl
Size 91.0 kB
Tags CPython 3.8 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
6e008987fd7e2329b14b2558ae16b74e98460d2ac50a98affa8d9951772c977e
BLAKE2b-256 checksum
How to use checksums
94383b185a4f17d53144892ff275bbb79ad7c3f27c6227b4d5b3e8dd01007477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 94.2 kB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
3fd017ffcdcf38422175176d1b3623a3499025c6c7c896b2502c0bd55bd2b36d
BLAKE2b-256 checksum
How to use checksums
2dc7c329e23b3b93c3d55d887e0320794ea42681770704987468060964608cfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 91.9 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
490a11968c79a17f9b01156d2d655f3e602ff8de9256b026cf1deb6213d34c78
BLAKE2b-256 checksum
How to use checksums
de81685a3c5dec31ba2c38615da84b74bc8973a77a0989091c5e2efaa7f5e4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-macosx_11_0_arm64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-macosx_11_0_arm64.whl
Size 61.9 kB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
703fa18a90289e20cec25ddfc0fc574440e86781e3c5d26c99acb757a6acb109
BLAKE2b-256 checksum
How to use checksums
2035a8a5443d95333984914ef51c661bd85b20fee2374b0b866243d25bbc0efe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tree_sitter_solidity-1.2.13-cp38-abi3-macosx_10_9_x86_64.whl

Download URL tree_sitter_solidity-1.2.13-cp38-abi3-macosx_10_9_x86_64.whl
Size 59.1 kB
Tags CPython 3.8 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a662d040cbe9d1a9f1083eb2be461c60748b7c90782de1f7505bf6494a1d5c05
BLAKE2b-256 checksum
How to use checksums
7ccf9387cd5cda028790dada6f999625e19489d7d76e8e92999403421ad7b1ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for tree-sitter-solidity 1.2.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page