From d6113254ff97213878911c68f374d0cf5b0302f5 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 20 Jul 2021 14:27:20 +0000 Subject: [PATCH] Added code to print table contents --- gens/dot.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gens/dot.h b/gens/dot.h index 748215e..7c01fd5 100644 --- a/gens/dot.h +++ b/gens/dot.h @@ -2,13 +2,14 @@ #define DOT_H #include <fstream> #include "../ast.h" +#include "../gens.h" -class dot_gen: public ast_visitor { +class dot_gen: public gen { std::ofstream out; int node_cnt; public: - dot_gen(std::string fname); ~dot_gen(); + void set_file(std::string file_name); std::string* new_node(); void* visit_Document(Document *d); void* visit_Block_Table(Block_Table *bt); -- Gitblit v1.10.0