pinosaur
/
taskasaur.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
most parsing done
[taskasaur.git]
/
headers
/
parser.h
1
2
#include <stdio.h>
3
#include <stdlib.h>
4
#include <string.h>
5
#include <assert.h>
6
#include <md4c.h>
7
8
typedef enum SubTaskState {
9
SubTaskState_todo,
10
SubTaskState_done
11
} SubTaskState;
12
13
typedef struct SubTask {
14
char* subtask_name;
15
SubTaskState done;
16
} SubTask;
17
18
typedef struct TodoItem {
19
char* item_name;
20
char* description;
21
char* due;
22
SubTask** subtask_list;
23
int subtask_count;
24
} TodoItem;
25
26
typedef struct TodoList {
27
char* list_name;
28
TodoItem** item_list;
29
int item_count;
30
} TodoList;
31
32
typedef struct Board {
33
char* board_name;
34
TodoList** todolist_list;
35
int todolist_count;
36
} Board;
37
38
39
extern Board* begin_parse(char* board_path);
40