Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrkrshnn/solc-ast-rs
Rust bindings for Solidity's AST and visitors
https://github.com/hrkrshnn/solc-ast-rs
rust solidity
Last synced: 2 months ago
JSON representation
Rust bindings for Solidity's AST and visitors
- Host: GitHub
- URL: https://github.com/hrkrshnn/solc-ast-rs
- Owner: hrkrshnn
- License: mit
- Created: 2023-04-17T02:25:46.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-09-04T15:37:57.000Z (over 1 year ago)
- Last Synced: 2024-10-29T20:12:16.697Z (2 months ago)
- Topics: rust, solidity
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 49
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# solc-ast
solc-ast provides rust bindings for the [solidity AST](https://solidity-ast.netlify.app/) and visitors. The visitors were built to be 1-1 compatible with the [visitors](https://github.com/ethereum/solidity/blob/develop/libsolidity/ast/ASTVisitor.h) from solc.
Note: The AST structs are almost entirely from [camden-smallwood](https://github.com/camden-smallwood)'s [solidity-rs](https://github.com/camden-smallwood/solidity-rs). The main deviation is in the Visitor implementation.
Note: AST for inline assembly in incomplete.
## Example
https://github.com/hrkrshnn/solc-ast-rs/blob/c62dec0d45888cb4f362f5966b32f83760a018f4/tests/basic.rs#L19-L41