From 17224ed868816701ed72995c861d85eb390374f4 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Thu, 12 Aug 2021 10:11:10 +0000
Subject: [PATCH] Last files to format

---
 main.cpp |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/main.cpp b/main.cpp
index 07f61cb..7b9abdd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,22 +1,19 @@
-#include <iostream>
-#include <string>
 #include "ast.h"
 #include "gens.h"
+#include "parsers.h"
+#include <iostream>
+#include <string>
 
-int main(int argc, char** argv)
+int main(int argc, char **argv)
 {
-	Document *d = new Document(NULL, NULL, NULL);
-	Block_Line *b = new Block_Line();
-	Line_Word *lw = new Line_Word();
-	std::string s = "Hello";
-	dot_gen *v = new dot_gen("temp.dot");
+	Document *d;
+	parser *p = new tester();
+	dot_gen *g = new dot_gen();
+	g->set_file("temp.dot");
+	d = p->parse();
+	d->visit(g);
 
-	d->add_block(b);
-	b->add_line(lw);
-	lw->add_word(new Format_Bold(new Text("Hello")));
-	lw->add_word(new Format_Italic(new Text("World")));
-	lw->add_word(new Text("Test"));
-	d->visit(v);
+	delete p;
+	delete g;
 	delete d;
-	delete v;
 }

--
Gitblit v1.10.0