hrkrshnn/solc-ast-rs

Rust bindings for Solidity's AST and visitors

Rust

50

23 commits

updated Sep 4, 2023

See the code

README

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

rust
solidity

Contributors

hrkrshnn

22 commits

moodlezoup

1 commits

hrkrshnn/solc-ast-rs

Rust bindings for Solidity's AST and visitors

Rust

50

23 commits

updated Sep 4, 2023

See the code

README

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

rust
solidity

Contributors

hrkrshnn

22 commits

moodlezoup

1 commits

Languages

Rust

98.6%

Emacs Lisp

1.4%