Home

Awesome

solc-ast

solc-ast provides rust bindings for the solidity AST and visitors. The visitors were built to be 1-1 compatible with the visitors from solc.

Note: The AST structs are almost entirely from camden-smallwood's 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