calc_next
preorder (dfa->str_tree, calc_next, dfa);
static reg_errcode_t calc_next (void *extra, bin_tree_t *node);