parse dependency to list