parse_index() moved to parse.c