- Read the sandbox tutorial
- ... together with the examples in bin/demo
- Read the env tutorial
- Run example 0 (
dune exec ./bin/example0.exe) and read the output & code. - Run example 1 (
dune exec ./bin/example1.exe) and read the output & code. - Read the dec tutorial
- Run and read
loan.ml(dune exec ./bin/loan.exe).
Run dune build @doc then open _build/default/_doc/_html/lib/index.html in your browser.
lib/env.mlcontains the ethereum-style execution environment.lib/c.mliandlib/env.mlicontain most of the interface for the code inlib/env.ml, they are good files to read.lib/address.mlis an abstract address package.lib/contracts/token.mlis a normal contract which happens to implement a generic Token functionality.lib/contracts/dec.mlis a normal contract which happens to implement the Dec functionality.lib/{imperative,monadic}.mlprovides a simple interface to both programming styles.lib/macro.mlcontains example code for "z-crossing".tooling/contains printing/maps/sets layers.
Just add any .ml files to bin/ and remember to add it to the list in bin/dune. Then, if you added the file file.ml, just run
dune exec ./bin/file.exe
Then to get an idea of what you can do :
- Read
lib/env.mli - Read
lib/contracts/dec.mli - Read
lib/contracts/dec.ml