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?