source-academy / source-programs

Notable Source programs, developed for SICP JS and other educational projects
GNU General Public License v3.0
7 stars 18 forks source link

[CS4215] Lazy Evaluation for Source §2 in Evaluator #32

Open Yujian-Fu opened 4 years ago

Yujian-Fu commented 4 years ago

We build a lazy evaluator based on evaluator 4-1 to implement the lazy evaluation. We add delay in evaluating function arguments, constant and variable declaration and we implement a lazy list feature in the lazy evaluator that supports pair operation and list data structure.