summaryrefslogtreecommitdiff
path: root/src/expr/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/node.h')
-rw-r--r--src/expr/node.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index ab5007a34..46827d196 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -154,9 +154,21 @@ public:
bool isNull() const;
+ /**
+ * Very basic pretty printer for Node.
+ * @param o output stream to print to.
+ * @param indent number of spaces to indent the formula by.
+ */
void printAst(std::ostream & o, int indent = 0) const;
private:
+
+ /**
+ * Pretty printer for use within gdb
+ * This is not intended to be used outside of gdb.
+ * This writes to the ostream Warning() and immediately flushes
+ * the ostream.
+ */
void debugPrint();
};/* class Node */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback