repositories
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c0944
)
ADd printing of decls
author
Mart Lubbers
<mart@martlubbers.net>
Wed, 16 May 2018 12:26:01 +0000
(14:26 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Wed, 16 May 2018 12:26:01 +0000
(14:26 +0200)
lambda.y
patch
|
blob
|
history
diff --git
a/lambda.y
b/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;
}