Ruby  2.5.0dev(2017-10-22revision60238)
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  rb_define_const(self, "SCANNER_EVENT_TABLE", h);
6  rb_hash_aset(h, intern_sym("CHAR"), INT2FIX(1));
7  rb_hash_aset(h, intern_sym("__end__"), INT2FIX(1));
8  rb_hash_aset(h, intern_sym("backref"), INT2FIX(1));
9  rb_hash_aset(h, intern_sym("backtick"), INT2FIX(1));
10  rb_hash_aset(h, intern_sym("comma"), INT2FIX(1));
11  rb_hash_aset(h, intern_sym("comment"), INT2FIX(1));
12  rb_hash_aset(h, intern_sym("const"), INT2FIX(1));
13  rb_hash_aset(h, intern_sym("cvar"), INT2FIX(1));
14  rb_hash_aset(h, intern_sym("embdoc"), INT2FIX(1));
15  rb_hash_aset(h, intern_sym("embdoc_beg"), INT2FIX(1));
16  rb_hash_aset(h, intern_sym("embdoc_end"), INT2FIX(1));
17  rb_hash_aset(h, intern_sym("embexpr_beg"), INT2FIX(1));
18  rb_hash_aset(h, intern_sym("embexpr_end"), INT2FIX(1));
19  rb_hash_aset(h, intern_sym("embvar"), INT2FIX(1));
20  rb_hash_aset(h, intern_sym("float"), INT2FIX(1));
21  rb_hash_aset(h, intern_sym("gvar"), INT2FIX(1));
22  rb_hash_aset(h, intern_sym("heredoc_beg"), INT2FIX(1));
23  rb_hash_aset(h, intern_sym("heredoc_end"), INT2FIX(1));
24  rb_hash_aset(h, intern_sym("ident"), INT2FIX(1));
25  rb_hash_aset(h, intern_sym("ignored_nl"), INT2FIX(1));
26  rb_hash_aset(h, intern_sym("imaginary"), INT2FIX(1));
27  rb_hash_aset(h, intern_sym("int"), INT2FIX(1));
28  rb_hash_aset(h, intern_sym("ivar"), INT2FIX(1));
29  rb_hash_aset(h, intern_sym("kw"), INT2FIX(1));
30  rb_hash_aset(h, intern_sym("label"), INT2FIX(1));
31  rb_hash_aset(h, intern_sym("label_end"), INT2FIX(1));
32  rb_hash_aset(h, intern_sym("lbrace"), INT2FIX(1));
33  rb_hash_aset(h, intern_sym("lbracket"), INT2FIX(1));
34  rb_hash_aset(h, intern_sym("lparen"), INT2FIX(1));
35  rb_hash_aset(h, intern_sym("nl"), INT2FIX(1));
36  rb_hash_aset(h, intern_sym("op"), INT2FIX(1));
37  rb_hash_aset(h, intern_sym("period"), INT2FIX(1));
38  rb_hash_aset(h, intern_sym("qsymbols_beg"), INT2FIX(1));
39  rb_hash_aset(h, intern_sym("qwords_beg"), INT2FIX(1));
40  rb_hash_aset(h, intern_sym("rational"), INT2FIX(1));
41  rb_hash_aset(h, intern_sym("rbrace"), INT2FIX(1));
42  rb_hash_aset(h, intern_sym("rbracket"), INT2FIX(1));
43  rb_hash_aset(h, intern_sym("regexp_beg"), INT2FIX(1));
44  rb_hash_aset(h, intern_sym("regexp_end"), INT2FIX(1));
45  rb_hash_aset(h, intern_sym("rparen"), INT2FIX(1));
46  rb_hash_aset(h, intern_sym("semicolon"), INT2FIX(1));
47  rb_hash_aset(h, intern_sym("sp"), INT2FIX(1));
48  rb_hash_aset(h, intern_sym("symbeg"), INT2FIX(1));
49  rb_hash_aset(h, intern_sym("symbols_beg"), INT2FIX(1));
50  rb_hash_aset(h, intern_sym("tlambda"), INT2FIX(1));
51  rb_hash_aset(h, intern_sym("tlambeg"), INT2FIX(1));
52  rb_hash_aset(h, intern_sym("tstring_beg"), INT2FIX(1));
53  rb_hash_aset(h, intern_sym("tstring_content"), INT2FIX(1));
54  rb_hash_aset(h, intern_sym("tstring_end"), INT2FIX(1));
55  rb_hash_aset(h, intern_sym("words_beg"), INT2FIX(1));
56  rb_hash_aset(h, intern_sym("words_sep"), INT2FIX(1));
57 }
VALUE rb_hash_aset(VALUE hash, VALUE key, VALUE val)
Definition: hash.c:1616
void rb_define_const(VALUE, const char *, VALUE)
Definition: variable.c:2691
VALUE rb_hash_new(void)
Definition: hash.c:424
unsigned long VALUE
Definition: ruby.h:85
#define INT2FIX(i)
Definition: ruby.h:232