From: Mart Lubbers Date: Wed, 16 May 2018 12:26:01 +0000 (+0200) Subject: ADd printing of decls X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=89afd42987386e002747b85743f374334cf80637;p=lambda.git ADd printing of decls --- diff --git a/lambda.y b/lambda.y index 007fb2d..f62de05 100644 --- a/lambda.y +++ b/lambda.y @@ -2,6 +2,7 @@ #include "lambda.h" #include "lambda.tab.h" #include "mem.h" +#include "print.h" struct lambda *result; struct decllist *decls = NULL; @@ -55,6 +56,8 @@ void decls_prepend(char *ident, struct lambda *value) head->next = decls; head->ident = ident; head->value = value; + printf("Declared %s as ", ident); + lambda_print(value); decls = head; }