void decls_prepend(char *ident, struct lambda *value)
{
- printf("add: %s\n", ident);
struct decllist *head = malloc(sizeof (struct decllist));
head->next = decls;
head->ident = ident;
struct lambda *decls_lookup(char *ident)
{
- printf("lookup: %s\n", ident);
struct decllist *c = decls;
while(c != NULL){
if(strcmp(c->ident, ident) == 0)
return copy(c->value);
c = c->next;
}
- printf("Notfound\n");
return make_ident(ident);
}