On Feb 19, 2008 9:21 AM, Graham Fawcett <[EMAIL PROTECTED]> wrote:

> What I was trying to work out, personally, was a nice way of
> transforming a postfix, fixed-arity language into decent
> lexically-scoped expressions, e.g.:
>
> 20 dup print + 30 *
>
> might translate into
>
> (lambda (b) (let ((a 20)) (print a) (* 30 (+ 10 b))))

Oops, I meant

(lambda (b) (let ((a 20)) (print a) (* 30 (+ a b))))

You can tell I don't have a Quacktor REPL open right now.. ;-)

G


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to