You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-11Lines changed: 58 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -15,32 +15,79 @@ cargo add scilla_parser
15
15
This will add the scilla_parser dependency to Cargo.toml as specified in the installation instructions above.
16
16
17
17
# Usage
18
+
This library parses the s-expression of a contract. There are two options:
19
+
1. Use `Contract::from_path` and pass a contract path. This function will automatically call `scilla-fmt` through docker to generate the s-expression needed to parsed the contract.
20
+
2. Parse a string (slice) to a contract. The string is supposed to have the s-expression of a contract.
0 commit comments