Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

The Egison Programming Language

Egison is the pattern-matching-oriented, purely functional programming language.
We can directly represent pattern-matching against lists, multisets, sets, trees, graphs and any kind of data types.
This is the docker repository of the interpreter of Egison.

Installation

We assume you are already familiar with Docker.

$ docker pull egison/egison:latest

Case 1. Run Interpreter

We can call the Egison interpreter with the following command.

$ docker run -t -i egison/egison:latest
Egison Version 3.5.6 (C) 2011-2014 Satoshi Egi
http://www.egison.org
Welcome to Egison Interpreter!
> 
Leaving Egison Interpreter.

Case 2. Execute Egison Script

We can execute an Egison script with the following command.
We can execute an Egison script under the current directory.

$ cat > hello.egi
(define $main
  (lambda [$args]
    (print "Hello, world!")))
$ docker run -t -i -v $(pwd):/docker:ro egison/egison:latest hello.egi
Hello, world!

Setting

We can set an alias as follow.

$ alias egison-docker='docker run -t -i -v $(pwd):/docker:ro egison/egison:latest'
$ egison-docker
Egison Version 3.5.6 (C) 2011-2014 Satoshi Egi
http://www.egison.org
Welcome to Egison Interpreter!
> 
Leaving Egison Interpreter.
$ egison-docker hello.egi
Hello, world!

Links

Docker Pull Command
Owner
egison
Source Repository