wrote repeat-dfa, which unfortunately builds an nfa, which this code can't run yet. still progress!