generate NFA for very simple regex