Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Getting started

David B edited this page Jun 19, 2014 · 1 revision

Installation

  • Chromebook.
git clone https://github.com/alandipert/gherkin.git
cd gherkin
sudo cp gherkin/gherkin /usr/local/bin
sudo mkdir /var/lib/gherkin
sudo cp gherkin/core.gk /var/lib/gherkin

Fire up a REPL

$ gherkin

Assigning a value to a variable.

> (def x 42)

Defining a function

> (def add (x y)
>  (+ x y))

> (add 42 1)
43

Making a system call

> (sh "pwd")
("/home/chronos/user/src/gherkin")

Load the core library.

> (load-file "/var/lib/gherkin/core.gk")

Exit the REPL.

> <CTRL-D>

or

> (exit 1)