updated "S \n S" rule to produce "S\nS" instead