Crates.io | pygmalion |
lib.rs | pygmalion |
version | 0.1.0 |
source | src |
created_at | 2024-06-13 13:12:40.129878 |
updated_at | 2024-06-13 13:12:40.129878 |
description | Pygmalion, yet another Solidity lexer written in Rust! |
homepage | |
repository | https://github.com/icanvardar/pygmalion |
max_upload_size | |
id | 1270635 |
size | 18,176 |
Pygmalion, yet another Solidity lexer written in Rust! This project leverages the power of the Rust programming language and the logos
library to provide a robust and efficient lexical analyzer for Solidity source code.
pragma
, assembly
, and yul
.Pygmalion can be used through its CLI. You can either provide a Solidity file or a short snippet of Solidity code for analysis. The lexer will output the tokenized version of the input.
Here are the available CLI options:
-p, --path <PATH>
: Path of the Solidity file to analyze.-c, --code <CODE>
: Short Solidity code snippet to analyze.-o, --out <OUT>
: Output file for the lexical analysis results.Analyze a Solidity file:
pygmalion -p path/to/your/file.sol
Analyze a short snippet of Solidity code:
pygmalion -c "pragma solidity ^0.8.0; contract HelloWorld { }"
Save the analysis result to a file:
pygmalion -p path/to/your/file.sol -o output.txt
To contribute to Pygmalion, follow these steps:
Pygmalion is licensed under the MIT License. See the LICENSE file for more details.
This project uses the following crates:
logos
for lexical analysis.tokio
for asynchronous I/O operations.clap
for command-line argument parsing.Thank you for using Pygmalion! If you have any questions or feedback, feel free to open an issue on GitHub. Peace!