Skip to content

Simple LISP like implementation of language, inspired by Metalinguistic abstraction

Notifications You must be signed in to change notification settings

MannarAmuthan/Metacircular-Evaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of Meta-circular evaluator:

Simple LISP like implementation of language, inspired by Metalinguistic abstraction from SICP.

Meta-circular evaluator

Sample Program Executed:
((defun fibonacci (N)
         (if (or (eq N 0) (eq N 1)) N ( + (fibonacci ((- N 1))) (fibonacci ((- N 2))) )))

 (define x (fibonacci (20))))
 // Above program is program string
 Environment environment = Evaluator.evaluateProgramString(program);
 assert environment.get("x").getAtom().getValue().equals("6765");

About

Simple LISP like implementation of language, inspired by Metalinguistic abstraction

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages