Skip to content
6.2.1. Dev Language

6.2.1. Dev Language

Smart Contract language for business applications.

An embedded lisp system for Go programs.
Open source on github: https://github.com/luthersystems/elps





Try it out

	                                            
	                                            

An example WASM build is available on github pages (source).





Build

go get -d ./...
make





Usage

Launch an interactive REPL

$ elps repl
> (+ 3 1)
4
>^D
done
$

Run a program in a file

$ elps run prog.lisp

Embedded execution in a Go program

env := lisp.NewEnv(nil)
env.Reader = parser.NewReader()
lerr := lisp.InitializeUserEnv(env)
if !lerr.IsNil() {
   log.Panicf("initialization error: %v", lerr)
}
lerr = lisplib.LoadLibrary(env)
if !lerr.IsNil() {
    log.Panicf("stdlib error: %v", lerr)
}
env.LoadString(`(debug-print "hello-world")`)





Reference

We use cookies to give you the best experience of using this website. By continuing to use this site, you accept our use of cookies. Please read our Cookie Policy for more information.