summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..3431ba8
--- /dev/null
+++ b/main.c
@@ -0,0 +1,14 @@
+#include "util.h"
+#include "parser.h"
+
+recipe ** cookbook;
+
+int
+main(int argc, char * argv[])
+{
+ fdebug("--- Debug mode is on ---\n");
+ recipe * r = parse(argv[1], NULL);
+ if (r) tojson(r);
+ free_recipe(r);
+ return 0;
+}