14 static constexpr const char *
const GRAPH_TYPE =
"graph";
15 static constexpr const char *
const EDGE =
" -- ";
27 ASTDot(std::ostream &
out,
int indent = 0);
30 using ConstASTVisitor::operator();
31#define DECLARE(CLASS) void operator()(Const<CLASS>&) override;
37 std::ostream & indent()
const {
38 M_insist(
indent_ >= 0,
"Indent must not be negative! Missing increment or superfluous decrement?");
51 void cluster(Const<Clause> &c,
const char *name,
const char *label,
const char *color);
Implements printing the AST in dot language.
static constexpr const char *const GRAPH_TYPE
std::ostream & out
the output stream to print to
static constexpr const char *const EDGE
int indent_
the current indentation for pretty printing