struct lambda *make_lambda()
{
- struct lambda *t = malloc(sizeof (struct lambda));
- t->refcount = 1;
- return t;
+ return malloc(sizeof (struct lambda));
}
struct lambda *make_ident(char *i)
struct lambda *t = $1;
printf(" ");
for(unsigned int i = 0; i<999; i++)
- if(!lambda_reduce(&t, &t, false))
+ if(!lambda_reduce(&t, &t, true))
break;
lambda_print(t, NULL);
putchar('\n');