make advanceTo be a method of Parser