Parser creates the NFA for a pattern