summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2017-06-23 22:16:23 +0100
committerToby Goodwin <toby@paccrat.org>2017-06-23 22:16:47 +0100
commit1216df718969c0f856bce9e1adc64bce127eadd9 (patch)
tree147e8aeb459b54a9d41ad0615d539f1e01afc580 /input.c
parent29440403156f6afc4ace075d96407596dfea2daa (diff)
add parse tree dumper with --enable-develop
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index 5737375..7773ace 100644
--- a/input.c
+++ b/input.c
@@ -4,6 +4,7 @@
#include <errno.h>
+#include "develop.h"
#include "edit.h"
#include "input.h"
#include "jbwrap.h"
@@ -306,6 +307,8 @@ extern Node *doit(bool clobberexecit) {
rc_raise(eError);
eof = (lastchar == EOF); /* "lastchar" can be clobbered during a walk() */
if (parsetree != NULL) {
+ if (RC_DEVELOP)
+ tree_dump(parsetree);
if (execit)
walk(parsetree, TRUE);
else if (dashex && dashen)