added function to get list of indexes from grammar of mixed range and single index