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

[WIP] T3 Lazy Evaluation for Source §2 in Evaluator #17

Closed Yujian-Fu closed 4 years ago

Yujian-Fu commented 4 years ago

We build a lazy evaluator based on evaluator 4-1 to implement 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.