From 89afd42987386e002747b85743f374334cf80637 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 16 May 2018 14:26:01 +0200 Subject: [PATCH] ADd printing of decls --- lambda.y | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1