Lines Matching refs:lookaheads
561 bitset *lookaheads; member
587 if (s->lookaheads) in ielr_compute_goto_follow_set()
592 if (s->lookaheads[item]) in ielr_compute_goto_follow_set()
593 bitset_or (follow_set, follow_set, s->lookaheads[item]); in ielr_compute_goto_follow_set()
615 bitsetv lookaheads) in ielr_compute_lookaheads() argument
619 bitsetv_zero (lookaheads); in ielr_compute_lookaheads()
642 lookaheads[t_item]); in ielr_compute_lookaheads()
644 else if (s->lookaheads) in ielr_compute_lookaheads()
653 if (s->lookaheads[s_item]) in ielr_compute_lookaheads()
654 bitset_copy (lookaheads[t_item], s->lookaheads[s_item]); in ielr_compute_lookaheads()
656 bitset_and (lookaheads[t_item], in ielr_compute_lookaheads()
657 lookaheads[t_item], lookahead_filter[t_item]); in ielr_compute_lookaheads()
701 bitsetv lookaheads, state_list **last_statep, in ielr_compute_state() argument
719 a, lr0_isocore->state->nitems, lookaheads, false); in ielr_compute_state()
742 (*this_isocorep)->lookaheads, false); in ielr_compute_state()
755 if (!(*this_isocorep)->lookaheads in ielr_compute_state()
756 || !(*this_isocorep)->lookaheads[i]) in ielr_compute_state()
758 if (!bitset_empty_p (lookaheads[i])) in ielr_compute_state()
763 else if (!bitset_equal_p ((*this_isocorep)->lookaheads[i], in ielr_compute_state()
764 lookaheads[i])) in ielr_compute_state()
777 if (!bitset_empty_p (lookaheads[i])) in ielr_compute_state()
795 if (!(*this_isocorep)->lookaheads) in ielr_compute_state()
797 (*this_isocorep)->lookaheads = in ielr_compute_state()
798 xnmalloc (t->nitems, sizeof (*this_isocorep)->lookaheads); in ielr_compute_state()
800 (*this_isocorep)->lookaheads[i] = NULL; in ielr_compute_state()
803 if (!bitset_empty_p (lookaheads[i])) in ielr_compute_state()
805 if (!(*this_isocorep)->lookaheads[i]) in ielr_compute_state()
806 (*this_isocorep)->lookaheads[i] = in ielr_compute_state()
808 bitset_andn (lookaheads[i], in ielr_compute_state()
809 lookaheads[i], (*this_isocorep)->lookaheads[i]); in ielr_compute_state()
810 bitset_or ((*this_isocorep)->lookaheads[i], in ielr_compute_state()
811 lookaheads[i], (*this_isocorep)->lookaheads[i]); in ielr_compute_state()
812 if (!bitset_empty_p (lookaheads[i])) in ielr_compute_state()
849 lookaheads); in ielr_compute_state()
901 annotation_lists, t2, lookaheads, in ielr_compute_state()
918 (*last_statep)->lookaheads = NULL; in ielr_compute_state()
922 (*last_statep)->lookaheads = in ielr_compute_state()
923 xnmalloc (t->nitems, sizeof (*last_statep)->lookaheads); in ielr_compute_state()
926 if (bitset_empty_p (lookaheads[i])) in ielr_compute_state()
927 (*last_statep)->lookaheads[i] = NULL; in ielr_compute_state()
930 (*last_statep)->lookaheads[i] = in ielr_compute_state()
932 bitset_copy ((*last_statep)->lookaheads[i], lookaheads[i]); in ielr_compute_state()
967 bitsetv lookaheads; in ielr_split_states() local
979 (*nodep)->lookaheads = NULL; in ielr_split_states()
990 lookaheads = bitsetv_create (max_nitems, ntokens, BITSET_FIXED); in ielr_split_states()
1010 lookaheads); in ielr_split_states()
1012 annotation_lists, t, lookaheads, &last_state, in ielr_split_states()
1021 bitsetv_free (lookaheads); in ielr_split_states()
1053 else if (node->lookaheads) in ielr_split_states()
1065 if (node->lookaheads[i]) in ielr_split_states()
1066 bitset_copy (lookahead_set, node->lookaheads[i]); in ielr_split_states()
1077 if (node->lookaheads) in ielr_split_states()
1081 if (node->lookaheads[i]) in ielr_split_states()
1082 bitset_free (node->lookaheads[i]); in ielr_split_states()
1083 free (node->lookaheads); in ielr_split_states()