Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81013 / go2html / main.cpp
diff options
context:
space:
mode:
1 files changed, 19 insertions, 0 deletions
-rw-r--r--homework/81013/go2html/main.cpp19
diff --git a/homework/81013/go2html/main.cpp b/homework/81013/go2html/main.cpp
new file mode 100644
index 0000000..4a8d65a
--- /dev/null
+++ b/homework/81013/go2html/main.cpp
@@ -0,0 +1,19 @@
+#include <iostream>
+#include <string>
+#include <fstream>
+#include <sstream>
+
+#include "CommonTypes.h"
+#include "Lexer.h"
+#include "Highlighter.h"
+
+int main(int argc, char **argv)
+{
+ // todo: WRITE PROPER TESTS
+ std::ifstream infile(argv[1]);
+ std::ofstream offile(argv[2]);
+
+ Highlight(infile, offile);
+
+ return 0;
+}