How to begin approach of creating a small lazily-evaluated language
-
18-09-2019 - |
Question
I'm trying to build a small language with similar syntax and grammatical structure to Java, with List Comprehension and Lambda Functions and such (already made).
What I'm trying to do now is instead of having it do eager evaluation, I want to make this language lazily-evaluate expressions. I'm not entirely sure how to go about it, because I don't have a clear idea of how to do partial evaluation.
I've done a lot of googling and come up with no answer, so I was wondering if anyone here had a good reference on this.
Any takers?
Solution
This page from the Haskell Wikibook might be a good starting point.
OTHER TIPS
The paper over designing/developing functional programming languages bij Simon Peyton Jones here might be useful.