Skip to content

wilenceyao/ml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ml

minimal lisp interpreter written in C.

Summary

A minimal lisp interpreter.

Implemented:

  • Grammar
  • Arithmetic expression
  • Error Handling
  • Builtin function: list, head, tail, eval

Environment

  • CentOS 7 (3.10.0-123.el7.x86_64)
  • cmake 2.8.11
  • clang 3.4.2

HOW TO

clone and compile

[email protected]:WilenceYao/ml.git
cd ml
make

run

./ml
ml version 0.0.1
Press Ctrl+c to Exit

ml> ( + 1 2.3)
3.3
ml> (/ 2 0)
Error: Division Zero
ml> eval (head {(+ 1 2) (+ 10 20)})
3
ml>

TO DO

  • Functions

Reference

License

Licensed under the MIT

About

Minimal Lisp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published