aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/driver/main.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/driver/main.cc b/tools/driver/main.cc
new file mode 100644
index 0000000..e83a408
--- /dev/null
+++ b/tools/driver/main.cc
@@ -0,0 +1,17 @@
+#include "cps/Lexer.h"
+#include "cps/Parser.h"
+#include "cps/CodeGen.h"
+
+int main() {
+ cps::Lexer Lex;
+
+ cps::Parser Parser(Lex);
+ auto Statements = Parser.Parse();
+
+ cps::CodeGen CG;
+ CG.compile(Statements);
+
+ CG.print();
+
+ return 0;
+}