Phase II trial to study the effectiveness of 506U78 in treating patients with refractory or relapsed acute lymphoblastic leukemia or lymphoblastic lymphoma. Drugs used in chemotherapy use different ways to stop cancer cells from dividing so they stop growing or die.