summaryrefslogtreecommitdiff
path: root/source/main.c~
diff options
context:
space:
mode:
authorLeo Tenenbaum <leo@localhost.localdomain>2016-01-11 20:27:31 -0500
committerLeo Tenenbaum <leo@localhost.localdomain>2016-01-11 20:27:31 -0500
commitc3afbe13e0938ffd21ce0d06dea0f9d6b4b75f69 (patch)
tree46e00ce324711717e0e4b8c455af2be5952fa826 /source/main.c~
Created cOok
Diffstat (limited to 'source/main.c~')
-rw-r--r--source/main.c~24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/main.c~ b/source/main.c~
new file mode 100644
index 0000000..6d75950
--- /dev/null
+++ b/source/main.c~
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "ook2bf.c"
+#include "bfcompiler.c"
+
+int main(int argc, char** argv)
+{
+ if (argc < 2)
+ {
+ fprintf(stderr, "Error: Usage: %s <file> <output_file>\n", argv[0]);
+ return 0;
+ }
+
+ char* bf;
+
+
+ bf = ook2bf(argv[1]);
+ compilebf(bf);
+
+
+
+ return 0;
+}