You need the following dependencies to be installed to compile liquidity
:
ocp-build
zarith
ocplib-json-typed
ocplib-endian
calendar
In the top-directory, use:
make clone-tezos
make
make install
If you want limited features, you can pass the first step, you will
only get a program liquidity-mini
with only compilation features,
no decompilation.
You can also use make clean
to clean the directories,
and make tests
to run the compiler on examples in the
tests/
directory.
Run the compiler with no options to get help.
The syntax of Liquidity is described in docs/liquidity.md
.
./_obuild/liquidity/liquidity.asm tests/test13.liq
will generate tests/test13.liq.tz
./_obuild/liquidity/liquidity.asm tests/test13.liq.tz
will generate tests/test13.liq.tz.liq
For example:
./_obuild/liquidity/liquidity.asm --load-arg tests/others/demo.arg --load-storage tests/others/demo.tzp --exec tests/others/demo.tzs
will output:
Program "tests/others/demo.tzs" parsed
Result:
Unit
Storage:
(Map (Item "Heineken" 0) (Item "Guinness" 0) (Item "Corona" 1))