extract primary rule parser test