From 1216df718969c0f856bce9e1adc64bce127eadd9 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Fri, 23 Jun 2017 22:16:23 +0100 Subject: add parse tree dumper with --enable-develop --- input.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'input.c') diff --git a/input.c b/input.c index 5737375..7773ace 100644 --- a/input.c +++ b/input.c @@ -4,6 +4,7 @@ #include +#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) -- cgit v1.2.3