Comby

Comby

  • Get started
  • Docs
  • Projects & Talks
  • GitHub
  • Blog

›Getting Started

Getting Started

  • Overview
  • Get Started

Usage

  • Basic Usage
  • Rewrite Properties
  • Syntax Reference
  • Advanced Usage
  • Configuration Files
  • Cheat Sheet

API

  • API Reference

Resources

  • Get Help
  • FAQ
Edit

Get started with comby

Install

Mac OS Xbrew install comby
Ubuntubash <(curl -sL get-comby.netlify.app)
Windowsbash <(curl -sL get-comby.netlify.app) after installing Ubuntu with WSL
Dockerdocker pull comby/comby
See More

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.

  1. Install opam
  2. 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.

← OverviewBasic Usage →
  • Install
    • Check your installation
  • Build from source

© 2022 @rvtond · Get started · Docs · Projects & Talks · Blog · Twitter