Skip to content

seanohalpin/chris-lisp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

My Lisp

Introduction

Here’s my (work in progress) interpretation of Peter Norvig’s Scheme. The language of implementation is Ruby, and I’m working in a TDD-style using TestUnit.

Usage

require 'lisp'

# I haven't implemented a default environment yet,
# here's a simple one
env = Env.new
env['+'] = Proc.new {|a,b| a + b}

# Eval the lisp code
code = '(+ 1 (+ 1 2))'
lisp_eval(parse(code), env) #=> 4

About

My version of Peter Norvig's Scheme, but in Ruby, with tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published