Skip to content

jhlagado/lispy2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lispy2.js

A lispy2 interpreter in JavaScript

This is a JavaScript implementation of Peter Norvig's Lispy2 interpreter

See: "(An ((Even Better) Lisp) Interpreter (in Python))" http://norvig.com/lispy2.html

It implements all functionality except complex number support (which should be easy to add if required).

This code can be included as a "little language" module in your JavaScript application.

It can be installed via bower and it supports RequireJS, AMD or via the global name space.

Simple example:

var result = lispy2.run('(+ 1 2)');

==> result = 3

A test framework which includes Norvig's original tests plus a few I added

can be found in tests.html (simply open it in a browser)

About

A lispy2 interpreter in JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published