Skip to content

A very small lisp interpreter, that I may one day get working on my 8-bit AVR microcontroller.

Notifications You must be signed in to change notification settings

mitunya/small-lisp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Mini-Lisp in C

This is a very small and limited Lisp interpreter based on Andru Luvisi's. Its lightweightness is very useful in learning how Lisp and Scheme internals work!

It's a single C source file which you can run like this:

gcc sl3.c && ((cat corelib.lisp; cat /dev/stdin) | ./a.out )

This will compile the interpreter, load the corelib and get you ready with a "repl" where you can experiment. Once the interpreter is running, you could try

(+ 1 1)
(cdr '(1 2))
(is-prime 103)
(define X '(3 4 5))
(print 'first element 'of 'list 'X 'is (cdr X))

About

A very small lisp interpreter, that I may one day get working on my 8-bit AVR microcontroller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.5%
  • NewLisp 20.5%