Skip to content

PBetzler/Rust-Lisp-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Lisp Interpreter

This is a learning project for both rust and lisp. It's core mechanics are based on the tutorial Risp. There have been many modifications regarding the error handling, nil values, the functions provided and a file interpretation has been added.

By now, the interpreter supports:

  • Booleans

  • Symbols

  • Numbers

  • Lists (including list key word)

  • Functions

  • Lambdas

  • Nil

  • Quote

  • Cons

  • Car

  • Cdr

  • Let

  • +

  • -

  • *

  • /

  • %

  • >

  • >=

  • <

  • <=

  • =

  • pow

Rust takes care of the memory management and therefore a garbage collector is not needed.

To read from stdin skip the args or add '-s', to read and interpret a file add '-f' and 'filepath'.

About

Rust Lisp Interpreter build as a learning project for both rust and lisp. If you have any suggestions please feel free to let me know! :)

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors