ADd printing of decls
authorMart Lubbers <mart@martlubbers.net>
Wed, 16 May 2018 12:26:01 +0000 (14:26 +0200)
committerMart Lubbers <mart@martlubbers.net>
Wed, 16 May 2018 12:26:01 +0000 (14:26 +0200)
lambda.y

index 007fb2d..f62de05 100644 (file)
--- 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;
 }