added reset method to parser actions; also backtracking detection to <nl> increment