Scilla Parser
This repository contains a Rust parser for the Scilla smart contract language. Scilla is the smart contract language used in the Zilliqa blockchain.
Install
Add the following to your Cargo.toml:
[]
= "0.1.0"
Alternatively, You can run this command:
cargo add scilla_parser
This will add the scilla_parser dependency to Cargo.toml as specified in the installation instructions above.
Usage
To parse a Scilla file:
use ;
let contract_path = from;
let contract = parse.unwrap;
assert_eq!;
For more example take a look at the tests.