ref: 349fb0a3a44d80d9655037eb660af844bc5a3244
parent: f3b87289d7b82879b8dc6336158829ed21881aa0
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Jul 9 06:17:24 EDT 2018
Add match tree debug option.
--- a/mi/match.c
+++ b/mi/match.c
@@ -724,6 +724,8 @@
fatal(pat[i], "pattern matched by earlier case");
addcapture(pat[i]->match.block, cap, ncap);
}
+ if (debugopt['M'])
+ dtreedump(stdout, start);
if (!verifymatch(start))
fatal(m, "nonexhaustive pattern set in match statement");
return start;