From 538459a8abf62bc85cc73b9e4eab9c29f732b282 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 20 Jul 2021 14:02:56 +0000
Subject: [PATCH] Added test document parser to check generators

---
 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