Lines Matching defs:s
36 static void nextstate(int s, int c);
38 static void acompute(int s);
39 static void rprint(int *a, char *s, int n);
42 static void bprint(char *a, char *s, int n);
164 "Too many positions %s",
316 static int s;
350 for (s = 0; s <= stnum; s++) {
352 cpackflg[s] = FALSE;
353 sfall[s] = -1;
354 acompute(s);
357 npos = *state[s];
359 curpos = *(state[s]+i);
387 curpos, s);
395 printf("State %d transitions on char-group {", s);
415 nextstate(s, i);
418 warning("bad state %d %o", s, i);
422 error("Too many states %s",
443 packtrans(s, tch, tst, n, tryit);
445 gotof[s] = -1;
455 nextstate(int s, int c)
460 /* state to goto from state s on char c */
461 num = *state[s];
463 pos = state[s] + 1;
536 /* try to pack transitions using ccl's */
539 if (tryit) { /* ccl's used */
710 "Too many transitions %s",
716 pstate(int s)
719 (void) printf("State %d:\n", s);
720 p = state[s];
738 CHR *s;
740 s = t;
742 while (*s)
743 if (*s++ == c)
789 acompute(int s)
797 p = state[s];
815 atable[s] = -1;
820 (void) printf("final %d actions:", s);
835 atable[s] = aptr;
838 (void) fprintf(fout, "/* actions for state %d */", s);
923 /* format and output final program's tables */
1033 "# define YYTYPE %s\n", stnum+1 >= NCH ? "int" : "unsigned char");
1139 rprint(int *a, char *s, int n)
1143 (void) fprintf(fout, "common /L%s/ %s\n", s, s);
1144 (void) fprintf(fout, "define S%s %d\n", s, n);
1145 (void) fprintf(fout, "integer %s (S%s)\n", s, s);
1149 (void) fprintf(fout, "%s (%d)/%d/", s, i, a[i]);
1172 bprint(char *a, char *s, int n)
1176 (void) fprintf(fout, "common /L%s/ %s\n", s, s);
1177 (void) fprintf(fout, "define S%s %d\n", s, n);
1178 (void) fprintf(fout, "integer %s (S%s)\n", s, s);
1180 (void) fprintf(fout, "data %s (%d)/%d/", s, i, a[i]);
1185 ", %s (%d)/%d/", s, k, a[k]);