From fb9b06b34e95f120a6ec78bd1ddf275c7eb03edb Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 13 Jul 2021 12:59:24 +0000
Subject: [PATCH] initial main for ast and dot testing

---
 main.cpp |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..07f61cb
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+#include <string>
+#include "ast.h"
+#include "gens.h"
+
+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");
+
+	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 d;
+	delete v;
+}

--
Gitblit v1.10.0