Skip to content
/ soup Public

A simple interpreted language written in Elixir

License

Notifications You must be signed in to change notification settings

lpil/soup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soup

Soup is a simple interpreted language, the runtime for which is written in Elixir.

It looks like this:

let x = 1
let y = 2

let add = |x, y| {
    x + y
}

let z = add(x, y)

It's largely an adaption of the Simple language from the first few chapters of Tom Stuart's excellent Understanding Computation. Go grab a copy.

Usage

# Compile the interpreter
MIX_ENV=prod mix escript.build

# Run some Souper code!
./soup priv/code/addition.soup

MPL2 Licence

About

A simple interpreted language written in Elixir

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published