Skip to content
/ lewis Public

Lewis is a dialect of Lisp that interoperates with Go (à la Clojure).

Notifications You must be signed in to change notification settings

mion/lewis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lewis

Lewis is a tiny dialect of Lisp that interoperates with Go (à la Clojure).

Installation

Make sure you have Go installed, then clone the repo:

$ git clone https://github.com/mion/lewis.git

Setup the workspace (Go environment variables):

$ cd lewis
$ source setup_workspace.sh

Build it:

$ sh build.sh

Start the REPL:

$ lewis

Features

You can import and use Go packages as such:

(import math/big)
(define x (NewInt 123))
(define y (NewInt 456))
(define z (NewInt 0))
(z Exp (x y nil))		-- From Go's "math/big": func (z *Int) Exp(x, y, m *Int) *Int

About

Lewis is a dialect of Lisp that interoperates with Go (à la Clojure).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published