Ellipse: Dev Language
Smart Contract language for business applications.
An embedded lisp system for Go programs.

Try it out

Ellipse Playground: Interactive REPL (Read, Eval, Print, Loop)
An example WASM build is available on github pages (source).

Build

1
go get -d ./...
2
make
Copied!

Usage

Launch an interactive REPL
1
$ elps repl
2
> (+ 3 1)
3
4
4
>^D
5
done
6
$
Copied!
Run a program in a file
1
$ elps run prog.lisp
Copied!
Embedded execution in a Go program
1
env := lisp.NewEnv(nil)
2
env.Reader = parser.NewReader()
3
lerr := lisp.InitializeUserEnv(env)
4
if !lerr.IsNil() {
5
log.Panicf("initialization error: %v", lerr)
6
}
7
lerr = lisplib.LoadLibrary(env)
8
if !lerr.IsNil() {
9
log.Panicf("stdlib error: %v", lerr)
10
}
11
env.LoadString(`(debug-print "hello-world")`)
Copied!

Reference