Ruby
2.0.0p645(2015-04-13revision50299)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
ripper
eventids2table.c
Go to the documentation of this file.
1
static
void
2
ripper_init_eventids2_table
(
VALUE
self
)
3
{
4
VALUE
h =
rb_hash_new
();
5
ID
id
;
6
rb_define_const
(
self
,
"SCANNER_EVENT_TABLE"
, h);
7
id
=
rb_intern_const
(
"CHAR"
);
8
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
9
id
=
rb_intern_const
(
"__end__"
);
10
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
11
id
=
rb_intern_const
(
"backref"
);
12
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
13
id
=
rb_intern_const
(
"backtick"
);
14
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
15
id
=
rb_intern_const
(
"comma"
);
16
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
17
id
=
rb_intern_const
(
"comment"
);
18
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
19
id
=
rb_intern_const
(
"const"
);
20
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
21
id
=
rb_intern_const
(
"cvar"
);
22
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
23
id
=
rb_intern_const
(
"embdoc"
);
24
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
25
id
=
rb_intern_const
(
"embdoc_beg"
);
26
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
27
id
=
rb_intern_const
(
"embdoc_end"
);
28
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
29
id
=
rb_intern_const
(
"embexpr_beg"
);
30
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
31
id
=
rb_intern_const
(
"embexpr_end"
);
32
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
33
id
=
rb_intern_const
(
"embvar"
);
34
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
35
id
=
rb_intern_const
(
"float"
);
36
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
37
id
=
rb_intern_const
(
"gvar"
);
38
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
39
id
=
rb_intern_const
(
"heredoc_beg"
);
40
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
41
id
=
rb_intern_const
(
"heredoc_end"
);
42
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
43
id
=
rb_intern_const
(
"ident"
);
44
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
45
id
=
rb_intern_const
(
"ignored_nl"
);
46
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
47
id
=
rb_intern_const
(
"int"
);
48
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
49
id
=
rb_intern_const
(
"ivar"
);
50
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
51
id
=
rb_intern_const
(
"kw"
);
52
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
53
id
=
rb_intern_const
(
"label"
);
54
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
55
id
=
rb_intern_const
(
"lbrace"
);
56
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
57
id
=
rb_intern_const
(
"lbracket"
);
58
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
59
id
=
rb_intern_const
(
"lparen"
);
60
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
61
id
=
rb_intern_const
(
"nl"
);
62
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
63
id
=
rb_intern_const
(
"op"
);
64
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
65
id
=
rb_intern_const
(
"period"
);
66
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
67
id
=
rb_intern_const
(
"qsymbols_beg"
);
68
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
69
id
=
rb_intern_const
(
"qwords_beg"
);
70
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
71
id
=
rb_intern_const
(
"rbrace"
);
72
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
73
id
=
rb_intern_const
(
"rbracket"
);
74
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
75
id
=
rb_intern_const
(
"regexp_beg"
);
76
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
77
id
=
rb_intern_const
(
"regexp_end"
);
78
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
79
id
=
rb_intern_const
(
"rparen"
);
80
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
81
id
=
rb_intern_const
(
"semicolon"
);
82
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
83
id
=
rb_intern_const
(
"sp"
);
84
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
85
id
=
rb_intern_const
(
"symbeg"
);
86
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
87
id
=
rb_intern_const
(
"symbols_beg"
);
88
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
89
id
=
rb_intern_const
(
"tlambda"
);
90
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
91
id
=
rb_intern_const
(
"tlambeg"
);
92
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
93
id
=
rb_intern_const
(
"tstring_beg"
);
94
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
95
id
=
rb_intern_const
(
"tstring_content"
);
96
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
97
id
=
rb_intern_const
(
"tstring_end"
);
98
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
99
id
=
rb_intern_const
(
"words_beg"
);
100
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
101
id
=
rb_intern_const
(
"words_sep"
);
102
rb_hash_aset
(h,
ID2SYM
(
id
),
INT2NUM
(1));
103
}
ID2SYM
#define ID2SYM(x)
ID
unsigned long ID
Definition:
ripper.y:105
rb_define_const
void rb_define_const(VALUE, const char *, VALUE)
Definition:
variable.c:2204
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
id
const int id
Definition:
nkf.c:209
rb_intern_const
#define rb_intern_const(str)
INT2NUM
#define INT2NUM(x)
rb_hash_new
VALUE rb_hash_new(void)
Definition:
hash.c:234
VALUE
unsigned long VALUE
Definition:
ripper.y:104
ripper_init_eventids2_table
static void ripper_init_eventids2_table(VALUE self)
Definition:
eventids2table.c:2
Generated on Thu Apr 30 2015 20:46:51 for Ruby by
1.8.5