summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2021-09-02 17:23:42 +0300
committergramanas <anastasis.gramm2@gmail.com>2021-09-02 17:23:42 +0300
commit9deed51aa2df7ca5979963f7452a6439ad2d3767 (patch)
tree7ceea0494c01eeff7e7fdaaa8b1bfc7e5adf62c1 /main.c
downloadfoodtools-9deed51aa2df7ca5979963f7452a6439ad2d3767.tar.gz
foodtools-9deed51aa2df7ca5979963f7452a6439ad2d3767.tar.bz2
foodtools-9deed51aa2df7ca5979963f7452a6439ad2d3767.zip
initial
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;
+}