Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
saeed-zil committed Dec 25, 2023
1 parent 6b2dfb8 commit 12d1c37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scilla-parser"
version = "0.9.0"
version = "0.10.0"
edition = "2021"
description = "Scilla smart contract parser written in Rust"
license = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This repository contains a Rust parser for the Scilla smart contract language. [
Add the following to your Cargo.toml:
```toml
[dependencies]
scilla_parser = "0.8.0"
scilla_parser = "0.10.0"
```

Alternatively, You can run this command:
Expand All @@ -20,6 +20,8 @@ This library parses the s-expression of a contract. There are two options:
2. Parse a string (slice) to a contract. The string is supposed to have the s-expression of a contract.

## To parse a Scilla file:
Here is the code to parse [SendZil.scilla](./tests/contracts/SendZil.scilla) contract:

```rust
use std::{error::Error, path::PathBuf};
use scilla_parser::{Contract, Field, FieldList, Transition, TransitionList, Type};
Expand Down

0 comments on commit 12d1c37

Please sign in to comment.