]> khamidou — GitHub mirrors - mojo.git/commitdiff
added file for the boostrap compiler
authorkhamidou <khamidou@gmail.com>
Tue, 12 Jan 2010 17:50:17 +0000 (18:50 +0100)
committerkhamidou <khamidou@gmail.com>
Tue, 12 Jan 2010 17:50:17 +0000 (18:50 +0100)
compiler.c [new file with mode: 0644]
compiler.h [new file with mode: 0644]

diff --git a/compiler.c b/compiler.c
new file mode 100644 (file)
index 0000000..fea3e04
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+  The mojo boostrap compiler.
+  copyright (c) 2009 karim hamidou.
+
+  This is a rough translator for a subset of mojo to C.
+  
+*/
+
+#include "compiler.h"
+
+int main(int argc, char **argv)
+{
+       if (argc != 2) {
+               fail("%s file", argv[0]);
+       }
+               
+}
diff --git a/compiler.h b/compiler.h
new file mode 100644 (file)
index 0000000..51a48d4
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef __COMPILER_H__
+#define __COMPILER_H__
+
+#include "tokens.h"
+#include "object.h"
+
+
+#endif