Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

mtsch/basic-lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-lisp

A working lisp-like language interpreter with:

  • ints, strings, bools, lists, recursive functions and variables
  • global mutable refs
  • some basic built-in functions including:
    • arithmetic operators
    • equality and order checking
    • head, tail, cons for lists
    • concat for lists and strings
    • throwing errors
    • printing to and reading from stdout
    • converting expressions to strings
    • evaluating strings
    • slurping files
    • setting and getting global mutable refs
    • if-then-else expressions
    • do-blocks

To see some examples, run:

(eval (slurp "example.bl"))

About

Basic Lisp interpreter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published