#define ONE 2

Adam Hinz: The Blog

progress and congress

On 2006-04-19 at 4/19/2006 10:03:00 PM...

[music] Sigur Ros - Hoppipolla

Rather than do the things I should be doing (homework, grading homework, reading...), I decided to put some more work into my Scheme/JS interpreter. And wouldn't you know it, I made reached 3 or so milestones.

First, I added define. That's a big step, as recursive programs are now possible for people like me who don't understand poor-man's recursion.

Second, I add +, -, and *. What made this unusually difficult? They can take an arbitrary number of arguments. yay!

Third, while writing +, I think I came up with an idea to handle lambdas of more than 1 argument.

How about that?

-adam

0 comments

Other places where I exist


Archive