parse goto labels