+Board*
+begin_parse(char* board_path)
+{
+ const char* input_buffer;
+ long input_size;
+ State* state;
+
+ /* read entire file */
+ input_buffer = read_file(board_path, &input_size);
+
+ /* setup state */
+ state = malloc(sizeof(State));
+ state->cur_todolist = NULL;
+ state->cur_todoitem = NULL;
+
+ state->board = malloc(sizeof(Board));
+ state->board->todolist_list = malloc(0);
+ state->board->todolist_count = 0;
+
+ md_parse(input_buffer, input_size, &parser, state);
+
+ free((char*)input_buffer);
+
+ return state->board;
+}
+