working on parser
[taskasaur.git] / headers / parser.h
diff --git a/headers/parser.h b/headers/parser.h
new file mode 100644 (file)
index 0000000..4081537
--- /dev/null
@@ -0,0 +1,34 @@
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <md4c.h>
+
+typedef struct SubTask {
+    char* subtask_name;
+    int done;
+} SubTask;
+
+typedef struct TodoItem {
+    char* item_name;
+    char* description;
+    char* due;
+    SubTask* subtask_list;
+    int subtask_count;
+} TodoItem;
+
+typedef struct TodoList {
+    char* list_name;
+    TodoItem* item_list;
+    int item_count;
+} TodoList;
+
+typedef struct Board {
+    char* board_name;
+    TodoList* todolist_list;
+    int todolist_count;
+} Board;
+
+
+extern Board* begin_parse(char* board_path);
+