working on parser
[taskasaur.git] / headers / parser.h
1
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <string.h>
5 #include <md4c.h>
6
7 typedef struct SubTask {
8     char* subtask_name;
9     int done;
10 } SubTask;
11
12 typedef struct TodoItem {
13     char* item_name;
14     char* description;
15     char* due;
16     SubTask* subtask_list;
17     int subtask_count;
18 } TodoItem;
19
20 typedef struct TodoList {
21     char* list_name;
22     TodoItem* item_list;
23     int item_count;
24 } TodoList;
25
26 typedef struct Board {
27     char* board_name;
28     TodoList* todolist_list;
29     int todolist_count;
30 } Board;
31
32
33 extern Board* begin_parse(char* board_path);
34