bind YY to appendLineToReg