pinosaur
/
taskasaur.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
reading tasklists
[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 enum SubTaskState {
8
SubTaskState_todo,
9
SubTaskState_done
10
} SubTaskState;
11
12
typedef struct SubTask {
13
char* subtask_name;
14
SubTaskState done;
15
} SubTask;
16
17
typedef struct TodoItem {
18
char* item_name;
19
char* description;
20
char* due;
21
SubTask** subtask_list;
22
int subtask_count;
23
} TodoItem;
24
25
typedef struct TodoList {
26
char* list_name;
27
TodoItem** item_list;
28
int item_count;
29
} TodoList;
30
31
typedef struct Board {
32
char* board_name;
33
TodoList** todolist_list;
34
int todolist_count;
35
} Board;
36
37
38
extern Board* begin_parse(char* board_path);
39