From e8ea5e907ca1fb359d5dd342e505a78bab42d879 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 12 Aug 2021 10:14:58 +0000
Subject: [PATCH] Renamed tester to fit with parser naming

---
 gens/dot.h |   43 ++++++++++++++++++++++++-------------------
 1 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/gens/dot.h b/gens/dot.h
index 748215e..d3975ff 100644
--- a/gens/dot.h
+++ b/gens/dot.h
@@ -1,28 +1,33 @@
 #ifndef DOT_H
 #define DOT_H
-#include <fstream>
 #include "../ast.h"
+#include "../gens.h"
+#include <fstream>
 
-class dot_gen: public ast_visitor {
+class dot_gen : public gen
+{
 	std::ofstream out;
 	int node_cnt;
-public:
-	dot_gen(std::string fname);
+
+      public:
 	~dot_gen();
-	std::string* new_node();
-	void* visit_Document(Document *d);
-	void* visit_Block_Table(Block_Table *bt);
-	void* visit_Block_Code(Block_Code *bc);
-	void* visit_Block_Line(Block_Line *bl);
-	void* visit_Heading(Heading *h);
-	void* visit_List(List *l);
-	void* visit_MathDisp(MathDisp *md);
-	void* visit_Line_Word(Line_Word *lw);
-	void* visit_MathInline(MathInline *mi);
-	void* visit_Link(Link *l);
-	void* visit_Text(Text *t);
-	void* visit_Format_Bold(Format_Bold *fb);
-	void* visit_Format_Italic(Format_Italic *fi);
-	void* visit_Format_Verbatim(Format_Verbatim *fv);
+	void set_file(std::string file_name);
+	std::string *new_node();
+	void *visit_Document(Document *d);
+	void *visit_Block_Table(Block_Table *bt);
+	void *visit_Block_Code(Block_Code *bc);
+	void *visit_Block_Word(Block_Word *bl);
+	void *visit_Heading(Heading *h);
+	void *visit_List(List *l);
+	void *visit_MathDisp(MathDisp *md);
+	void *visit_Line_Word(Line_Word *lw);
+	void *visit_MathInline(MathInline *mi);
+	void *visit_Link(Link *l);
+	void *visit_Text(Text *t);
+	void *visit_Format_Bold(Format_Bold *fb);
+	void *visit_Format_Italic(Format_Italic *fi);
+	void *visit_Format_Verbatim(Format_Verbatim *fv);
+	void *visit_Format_Strikethrough(Format_Strikethrough *fs);
+	void *visit_Format_Underline(Format_Underline *fu);
 };
 #endif

--
Gitblit v1.10.0