willhbr / slang-vm

A LISP compiler that runs on a simple VM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slang

A simple compiled Lisp with coroutines and immutable data structures

Usage

Install Go (I use 1.8) and Ruby (I use 2.4.1). build.sh should install dependencies and create the slang binary in bin/.

Scripts can be run using run.sh (which also rebuilds everything). It will build all .slg files in the current directory, writes the compiled program to a file (given as the first argument) and runs that file in the VM.

(module Main)

(IO.puts "Hello world!")
./run.sh script.slgc

About

A LISP compiler that runs on a simple VM


Languages

Language:Go 56.3%Language:Ruby 43.0%Language:Shell 0.7%