Crate solar_parse

Source
Expand description

§solar-parse

Solidity and Yul lexer and parser.

The implementation of both are modified from rustc_lexer and rustc_parse in the Rust compiler to accommodate the differences between Rust and Solidity/Yul.

Re-exports§

pub use lexer::unescape;
pub use lexer::Cursor;
pub use lexer::Lexer;
pub use bumpalo;
pub use solar_ast as ast;
pub use solar_interface as interface;

Modules§

lexer
Solidity and Yul lexer.
token
Solidity source code token.

Structs§

Parser
Solidity and Yul parser.

Type Aliases§

PErr
Parser error type.
PResult
Parser result type. This is a shorthand for Result<T, PErr<'a>>.