pub fn visit(state: &RegexState) -> Result<FsmWithStartEnd, String>
Construct the NFA for a single IR node.