summaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/main.c b/source/main.c
new file mode 100644
index 0000000..c832a5e
--- /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>\n", argv[0]);
+ return 0;
+ }
+
+ char* bf;
+
+
+ bf = ook2bf(argv[1]);
+ compilebf(bf);
+
+
+
+ return 0;
+}