Add getIndexList function to the parser