(b76ad15ed0da636161de0243c547ee1e6fc95681)
Go to the source code of this file.
|  | 
| #define | FALSE   0 | 
|  | 
| #define | TRUE   1 | 
|  | 
| #define | RACC_VERSION   "1.4.15" | 
|  | 
| #define | DEFAULT_TOKEN   -1 | 
|  | 
| #define | ERROR_TOKEN   1 | 
|  | 
| #define | FINAL_TOKEN   0 | 
|  | 
| #define | vDEFAULT_TOKEN   INT2FIX(DEFAULT_TOKEN) | 
|  | 
| #define | vERROR_TOKEN   INT2FIX(ERROR_TOKEN) | 
|  | 
| #define | vFINAL_TOKEN   INT2FIX(FINAL_TOKEN) | 
|  | 
| #define | rb_ary_subseq(ary,  beg,  len)   rb_ary_new4(len, RARRAY_PTR(ary) + beg) | 
|  | 
| #define | AREF(s,  idx)   ((0 <= idx && idx < RARRAY_LEN(s)) ? rb_ary_entry(s, idx) : Qnil) | 
|  | 
| #define | STACK_INIT_LEN   64 | 
|  | 
| #define | NEW_STACK()   rb_ary_new2(STACK_INIT_LEN) | 
|  | 
| #define | PUSH(s,  i)   rb_ary_store(s, RARRAY_LEN(s), i) | 
|  | 
| #define | POP(s)   rb_ary_pop(s) | 
|  | 
| #define | LAST_I(s)   ((RARRAY_LEN(s) > 0) ? rb_ary_entry(s, RARRAY_LEN(s) - 1) : Qnil) | 
|  | 
| #define | GET_TAIL(s,  len)   get_stack_tail(s, len) | 
|  | 
| #define | CUT_TAIL(s,  len)   cut_stack_tail(s, len) | 
|  | 
| #define | CP_FIN_ACCEPT   1 | 
|  | 
| #define | CP_FIN_EOT   2 | 
|  | 
| #define | CP_FIN_CANTPOP   3 | 
|  | 
| #define | D_puts(msg) | 
|  | 
| #define | D_printf(fmt,  arg) | 
|  | 
| #define | RUBY_UNTYPED_DATA_WARNING   1 | 
|  | 
| #define | SHIFT(v,  act,  tok,  val)   shift(v,act,tok,val) | 
|  | 
| #define | REDUCE(v,  act) | 
|  | 
◆ AREF
◆ CP_FIN_ACCEPT
◆ CP_FIN_CANTPOP
◆ CP_FIN_EOT
◆ CUT_TAIL
      
        
          | #define CUT_TAIL | ( |  | s, | 
        
          |  |  |  | len | 
        
          |  | ) |  | cut_stack_tail(s, len) | 
      
 
 
◆ D_printf
      
        
          | #define D_printf | ( |  | fmt, | 
        
          |  |  |  | arg | 
        
          |  | ) |  |  | 
      
 
 
◆ D_puts
◆ DEFAULT_TOKEN
◆ ERROR_TOKEN
◆ FALSE
◆ FINAL_TOKEN
◆ GET_TAIL
      
        
          | #define GET_TAIL | ( |  | s, | 
        
          |  |  |  | len | 
        
          |  | ) |  | get_stack_tail(s, len) | 
      
 
 
◆ LAST_I
◆ NEW_STACK
◆ POP
◆ PUSH
◆ RACC_VERSION
      
        
          | #define RACC_VERSION   "1.4.15" | 
      
 
 
◆ rb_ary_subseq
◆ REDUCE
      
        
          | #define REDUCE | ( |  | v, | 
        
          |  |  |  | act | 
        
          |  | ) |  |  | 
      
 
Value:    do {\
    switch (reduce(v,act)) {  \
      case 0:     \
        break;                \
      case 1:    \
        goto user_yyerror;    \
      case 2:   \
        D_puts("u accept");   \
        goto accept;          \
      default:                \
        break;                \
    }                         \
} while (0)
Definition at line 464 of file cparse.c.
 
 
◆ RUBY_UNTYPED_DATA_WARNING
      
        
          | #define RUBY_UNTYPED_DATA_WARNING   1 | 
      
 
 
◆ SHIFT
      
        
          | #define SHIFT | ( |  | v, | 
        
          |  |  |  | act, | 
        
          |  |  |  | tok, | 
        
          |  |  |  | val | 
        
          |  | ) |  | shift(v,act,tok,val) | 
      
 
 
◆ STACK_INIT_LEN
      
        
          | #define STACK_INIT_LEN   64 | 
      
 
 
◆ TRUE
◆ vDEFAULT_TOKEN
◆ vERROR_TOKEN
◆ vFINAL_TOKEN
◆ Init_cparse()
      
        
          | void Init_cparse | ( | void |  | ) |  |