parser for finding predecessor.