Skip to content

capjamesg/lisp-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lisp Interpreter

A Lisp interpreter written in Python.

Running the interpreter

To open a Lisp REPL, use this command:

python3 lisp.py --repl

This command will open up a prompt into which you can type Lisp commands:

* (+ 1 2 3)

Running the test cases

To run the unit tests associated with this project, use the following command:

python3 tests.py

Functions Implemented

This interpreter implements the following functions out of the box:

  • first, last
  • +, -, /, *
  • car, cdr
  • max, min
  • and, or, not
  • quote
  • list
  • print
  • defun
  • if

License

This project is licensed under an MIT license.

Contributors

  • capjamesg

About

A Lisp interpreter built in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages