Get started with comby
Install
Mac OS X | brew install comby |
Ubuntu | bash <(curl -sL get-comby.netlify.app) |
Windows | bash <(curl -sL get-comby.netlify.app) after installing Ubuntu with WSL |
Docker | docker pull comby/comby |
Or build from source. Having trouble? Ask in Gitter or create an issue on GitHub.
Check your installation
Run this in your terminal to check that things are working:
comby 'swap(:[1], :[2])' 'swap(:[2], :[1])' -stdin .js <<< 'swap(x, y)'
You should see:
------ /dev/null
++++++ /dev/null
@|-1,1 +1,1 ============================================================
-|swap(x, y)
+|swap(y, x)
Build from source
Build comby from source for other platforms or for local development.
- Install opam
- Create a new switch for the OCaml compiler
opam init
opam switch create 4.09.0 4.09.0
The above step will take a couple of minutes. Next,
git clone https://github.com/comby-tools/comby
cd comby
opam pin add comby.dev -n .
opam depext -yt comby
opam install -t . --deps-only
make
make test
Optionally, run make install
if you want to install the comby
binary on your path.