Go to the source code of this file.
|
#define | FALSE 0 |
|
#define | TRUE 1 |
|
#define | RACC_VERSION "1.4.5" |
|
#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 | 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) |
|
#define | rb_intern(str) rb_intern_const(str) |
|
◆ 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.5" |
◆ rb_intern
◆ 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 460 of file cparse.c.
◆ RUBY_UNTYPED_DATA_WARNING
#define RUBY_UNTYPED_DATA_WARNING 1 |
◆ SHIFT
◆ STACK_INIT_LEN
#define STACK_INIT_LEN 64 |
◆ TRUE
◆ vDEFAULT_TOKEN
◆ vERROR_TOKEN
◆ vFINAL_TOKEN
◆ Init_cparse()
void Init_cparse |
( |
void |
| ) |
|