views:

40

answers:

2

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?

+1  A: 

This page from the Haskell Wikibook might be a good starting point.

Artelius
Thanks! I think this will help me find what I'm looking for.
Matthiasak
+1  A: 

The paper over designing/developing functional programming languages bij Simon Peyton Jones here might be useful.

Ruben