Lines Matching refs:pempty
106 static int *pempty; /* vector of nonterminals nontrivially */
209 pempty = (int *)malloc(sizeof (int)*(nnontersz + 1));
219 (pfirst == NULL) || (pempty == NULL) || (pstate == NULL) ||
704 } else if (!pempty[ch-NTBASE])
721 if (!pempty[ch])
737 (void) fprintf(foutput, " %d\n", pempty[i]);
864 * first, use the array pempty to detect productions
868 /* set pempty to WHONOWS */
869 aryfil(pempty, nnonter+1, WHOKNOWS);
877 if (pempty[*prdptr[i] - NTBASE])
880 if (*p >= NTBASE && pempty[*p-NTBASE] == WHOKNOWS)
883 pempty[*prdptr[i]-NTBASE] = OK;
897 if (pempty[i] != OK) {
918 * now, compute the pempty array, to see which nonterminals
922 /* set pempty to WHOKNOWS */
924 aryfil(pempty, nnonter+1, WHOKNOWS);
931 if (pempty[*prdptr[i]-NTBASE] == WHOKNOWS) {
933 *p >= NTBASE && pempty[*p-NTBASE] == EMPTY; ++p)
937 pempty[*prdptr[i]-NTBASE] = EMPTY;
1081 if (!pempty[ch-NTBASE])