• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ruby-106/ruby/ext/racc/cparse/

Lines Matching refs:act

208 static void shift _((struct cparse_params* v, long act, VALUE tok, VALUE val));
209 static int reduce _((struct cparse_params* v, long act));
437 #define SHIFT(v,act,tok,val) shift(v,act,tok,val)
438 #define REDUCE(v,act) do {\
439 switch (reduce(v,act)) { \
456 long act; /* action type */
469 D_printf("(act) k1=%ld\n", v->curstate);
472 D_puts("(act) pointer[k1] ok");
496 D_printf("(act) t(k2)=%ld\n", NUM2LONG(v->t));
505 D_printf("(act) i=%ld\n", i);
510 act = NUM2LONG(act_value);
511 D_printf("(act) table[i]=%ld\n", act);
516 D_printf("(act) check[i]=%ld\n", NUM2LONG(tmp));
518 D_puts("(act) found");
520 D_printf("act=%ld\n", act);
524 D_puts("(act) not found: use default");
526 act = NUM2LONG(act_value);
531 if (act > 0 && act < v->shift_n) {
537 SHIFT(v, act, v->t, val);
540 else if (act < 0 && act > -(v->reduce_n)) {
542 REDUCE(v, act);
544 else if (act == -(v->reduce_n)) {
549 else if (act == v->shift_n) {
554 rb_raise(RaccBug, "[Racc Bug] unknown act value %ld", act);
608 act = NUM2LONG(act_value);
609 D_printf("(err) table[i]=%ld\n", act);
625 D_puts("(err) act not found: can't handle error token; pop");
643 if (act > 0 && act < v->shift_n) {
645 SHIFT(v, act, ERROR_TOKEN, val);
647 else if (act < 0 && act > -(v->reduce_n)) {
649 REDUCE(v, act);
651 else if (act == v->shift_n) {
656 rb_raise(RaccBug, "[Racc Bug] unknown act value %ld", act);
662 shift(struct cparse_params *v, long act, VALUE tok, VALUE val)
670 v->curstate = act;
675 reduce(struct cparse_params *v, long act)
678 v->ruleno = -act * 3;