/* build a machine that recognizes any */ MACHINE RE_any(void) { MACHINE x; new_TWO(M_ANY, &x); return x; }
/* build a machine that recognizes a class */ MACHINE RE_class(BV * bvp) { MACHINE x; new_TWO(M_CLASS, &x); x.start->s_data.bvp = bvp; return x; }
MACHINE RE_str(char *str, size_t len) { MACHINE x; new_TWO(M_STR, &x); x.start->s_len = (SLen) len; x.start->s_data.str = str; return x; }