Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

eventids1.c
Go to the documentation of this file.
1 static ID ripper_id_BEGIN;
2 static ID ripper_id_END;
3 static ID ripper_id_alias;
4 static ID ripper_id_alias_error;
5 static ID ripper_id_aref;
6 static ID ripper_id_aref_field;
7 static ID ripper_id_arg_ambiguous;
8 static ID ripper_id_arg_paren;
9 static ID ripper_id_args_add;
10 static ID ripper_id_args_add_block;
11 static ID ripper_id_args_add_star;
12 static ID ripper_id_args_new;
13 static ID ripper_id_array;
14 static ID ripper_id_assign;
15 static ID ripper_id_assign_error;
16 static ID ripper_id_assoc_new;
17 static ID ripper_id_assoc_splat;
18 static ID ripper_id_assoclist_from_args;
19 static ID ripper_id_bare_assoc_hash;
20 static ID ripper_id_begin;
21 static ID ripper_id_binary;
22 static ID ripper_id_block_var;
23 static ID ripper_id_block_var_add_block;
24 static ID ripper_id_block_var_add_star;
25 static ID ripper_id_blockarg;
26 static ID ripper_id_bodystmt;
27 static ID ripper_id_brace_block;
28 static ID ripper_id_break;
29 static ID ripper_id_call;
30 static ID ripper_id_case;
31 static ID ripper_id_class;
32 static ID ripper_id_class_name_error;
33 static ID ripper_id_command;
34 static ID ripper_id_command_call;
35 static ID ripper_id_const_path_field;
36 static ID ripper_id_const_path_ref;
37 static ID ripper_id_const_ref;
38 static ID ripper_id_def;
39 static ID ripper_id_defined;
40 static ID ripper_id_defs;
41 static ID ripper_id_do_block;
42 static ID ripper_id_dot2;
43 static ID ripper_id_dot3;
44 static ID ripper_id_dyna_symbol;
45 static ID ripper_id_else;
46 static ID ripper_id_elsif;
47 static ID ripper_id_ensure;
48 static ID ripper_id_excessed_comma;
49 static ID ripper_id_fcall;
50 static ID ripper_id_field;
51 static ID ripper_id_for;
52 static ID ripper_id_hash;
53 static ID ripper_id_if;
54 static ID ripper_id_if_mod;
55 static ID ripper_id_ifop;
56 static ID ripper_id_lambda;
57 static ID ripper_id_magic_comment;
58 static ID ripper_id_massign;
59 static ID ripper_id_method_add_arg;
60 static ID ripper_id_method_add_block;
61 static ID ripper_id_mlhs_add;
62 static ID ripper_id_mlhs_add_star;
63 static ID ripper_id_mlhs_new;
64 static ID ripper_id_mlhs_paren;
65 static ID ripper_id_module;
66 static ID ripper_id_mrhs_add;
67 static ID ripper_id_mrhs_add_star;
68 static ID ripper_id_mrhs_new;
69 static ID ripper_id_mrhs_new_from_args;
70 static ID ripper_id_next;
71 static ID ripper_id_opassign;
72 static ID ripper_id_operator_ambiguous;
73 static ID ripper_id_param_error;
74 static ID ripper_id_params;
75 static ID ripper_id_paren;
76 static ID ripper_id_parse_error;
77 static ID ripper_id_program;
78 static ID ripper_id_qsymbols_add;
79 static ID ripper_id_qsymbols_new;
80 static ID ripper_id_qwords_add;
81 static ID ripper_id_qwords_new;
82 static ID ripper_id_redo;
83 static ID ripper_id_regexp_add;
84 static ID ripper_id_regexp_literal;
85 static ID ripper_id_regexp_new;
86 static ID ripper_id_rescue;
87 static ID ripper_id_rescue_mod;
88 static ID ripper_id_rest_param;
89 static ID ripper_id_retry;
90 static ID ripper_id_return;
91 static ID ripper_id_return0;
92 static ID ripper_id_sclass;
93 static ID ripper_id_stmts_add;
94 static ID ripper_id_stmts_new;
95 static ID ripper_id_string_add;
96 static ID ripper_id_string_concat;
97 static ID ripper_id_string_content;
98 static ID ripper_id_string_dvar;
99 static ID ripper_id_string_embexpr;
100 static ID ripper_id_string_literal;
101 static ID ripper_id_super;
102 static ID ripper_id_symbol;
103 static ID ripper_id_symbol_literal;
104 static ID ripper_id_symbols_add;
105 static ID ripper_id_symbols_new;
106 static ID ripper_id_top_const_field;
107 static ID ripper_id_top_const_ref;
108 static ID ripper_id_unary;
109 static ID ripper_id_undef;
110 static ID ripper_id_unless;
111 static ID ripper_id_unless_mod;
112 static ID ripper_id_until;
113 static ID ripper_id_until_mod;
114 static ID ripper_id_var_alias;
115 static ID ripper_id_var_field;
116 static ID ripper_id_var_ref;
117 static ID ripper_id_vcall;
118 static ID ripper_id_void_stmt;
119 static ID ripper_id_when;
120 static ID ripper_id_while;
121 static ID ripper_id_while_mod;
122 static ID ripper_id_word_add;
123 static ID ripper_id_word_new;
124 static ID ripper_id_words_add;
125 static ID ripper_id_words_new;
126 static ID ripper_id_xstring_add;
127 static ID ripper_id_xstring_literal;
128 static ID ripper_id_xstring_new;
129 static ID ripper_id_yield;
130 static ID ripper_id_yield0;
131 static ID ripper_id_zsuper;
132
133 static void
134 ripper_init_eventids1(void)
135 {
136 ripper_id_BEGIN = rb_intern_const("on_BEGIN");
137 ripper_id_END = rb_intern_const("on_END");
138 ripper_id_alias = rb_intern_const("on_alias");
139 ripper_id_alias_error = rb_intern_const("on_alias_error");
140 ripper_id_aref = rb_intern_const("on_aref");
141 ripper_id_aref_field = rb_intern_const("on_aref_field");
142 ripper_id_arg_ambiguous = rb_intern_const("on_arg_ambiguous");
143 ripper_id_arg_paren = rb_intern_const("on_arg_paren");
144 ripper_id_args_add = rb_intern_const("on_args_add");
145 ripper_id_args_add_block = rb_intern_const("on_args_add_block");
146 ripper_id_args_add_star = rb_intern_const("on_args_add_star");
147 ripper_id_args_new = rb_intern_const("on_args_new");
148 ripper_id_array = rb_intern_const("on_array");
149 ripper_id_assign = rb_intern_const("on_assign");
150 ripper_id_assign_error = rb_intern_const("on_assign_error");
151 ripper_id_assoc_new = rb_intern_const("on_assoc_new");
152 ripper_id_assoc_splat = rb_intern_const("on_assoc_splat");
153 ripper_id_assoclist_from_args = rb_intern_const("on_assoclist_from_args");
154 ripper_id_bare_assoc_hash = rb_intern_const("on_bare_assoc_hash");
155 ripper_id_begin = rb_intern_const("on_begin");
156 ripper_id_binary = rb_intern_const("on_binary");
157 ripper_id_block_var = rb_intern_const("on_block_var");
158 ripper_id_block_var_add_block = rb_intern_const("on_block_var_add_block");
159 ripper_id_block_var_add_star = rb_intern_const("on_block_var_add_star");
160 ripper_id_blockarg = rb_intern_const("on_blockarg");
161 ripper_id_bodystmt = rb_intern_const("on_bodystmt");
162 ripper_id_brace_block = rb_intern_const("on_brace_block");
163 ripper_id_break = rb_intern_const("on_break");
164 ripper_id_call = rb_intern_const("on_call");
165 ripper_id_case = rb_intern_const("on_case");
166 ripper_id_class = rb_intern_const("on_class");
167 ripper_id_class_name_error = rb_intern_const("on_class_name_error");
168 ripper_id_command = rb_intern_const("on_command");
169 ripper_id_command_call = rb_intern_const("on_command_call");
170 ripper_id_const_path_field = rb_intern_const("on_const_path_field");
171 ripper_id_const_path_ref = rb_intern_const("on_const_path_ref");
172 ripper_id_const_ref = rb_intern_const("on_const_ref");
173 ripper_id_def = rb_intern_const("on_def");
174 ripper_id_defined = rb_intern_const("on_defined");
175 ripper_id_defs = rb_intern_const("on_defs");
176 ripper_id_do_block = rb_intern_const("on_do_block");
177 ripper_id_dot2 = rb_intern_const("on_dot2");
178 ripper_id_dot3 = rb_intern_const("on_dot3");
179 ripper_id_dyna_symbol = rb_intern_const("on_dyna_symbol");
180 ripper_id_else = rb_intern_const("on_else");
181 ripper_id_elsif = rb_intern_const("on_elsif");
182 ripper_id_ensure = rb_intern_const("on_ensure");
183 ripper_id_excessed_comma = rb_intern_const("on_excessed_comma");
184 ripper_id_fcall = rb_intern_const("on_fcall");
185 ripper_id_field = rb_intern_const("on_field");
186 ripper_id_for = rb_intern_const("on_for");
187 ripper_id_hash = rb_intern_const("on_hash");
188 ripper_id_if = rb_intern_const("on_if");
189 ripper_id_if_mod = rb_intern_const("on_if_mod");
190 ripper_id_ifop = rb_intern_const("on_ifop");
191 ripper_id_lambda = rb_intern_const("on_lambda");
192 ripper_id_magic_comment = rb_intern_const("on_magic_comment");
193 ripper_id_massign = rb_intern_const("on_massign");
194 ripper_id_method_add_arg = rb_intern_const("on_method_add_arg");
195 ripper_id_method_add_block = rb_intern_const("on_method_add_block");
196 ripper_id_mlhs_add = rb_intern_const("on_mlhs_add");
197 ripper_id_mlhs_add_star = rb_intern_const("on_mlhs_add_star");
198 ripper_id_mlhs_new = rb_intern_const("on_mlhs_new");
199 ripper_id_mlhs_paren = rb_intern_const("on_mlhs_paren");
200 ripper_id_module = rb_intern_const("on_module");
201 ripper_id_mrhs_add = rb_intern_const("on_mrhs_add");
202 ripper_id_mrhs_add_star = rb_intern_const("on_mrhs_add_star");
203 ripper_id_mrhs_new = rb_intern_const("on_mrhs_new");
204 ripper_id_mrhs_new_from_args = rb_intern_const("on_mrhs_new_from_args");
205 ripper_id_next = rb_intern_const("on_next");
206 ripper_id_opassign = rb_intern_const("on_opassign");
207 ripper_id_operator_ambiguous = rb_intern_const("on_operator_ambiguous");
208 ripper_id_param_error = rb_intern_const("on_param_error");
209 ripper_id_params = rb_intern_const("on_params");
210 ripper_id_paren = rb_intern_const("on_paren");
211 ripper_id_parse_error = rb_intern_const("on_parse_error");
212 ripper_id_program = rb_intern_const("on_program");
213 ripper_id_qsymbols_add = rb_intern_const("on_qsymbols_add");
214 ripper_id_qsymbols_new = rb_intern_const("on_qsymbols_new");
215 ripper_id_qwords_add = rb_intern_const("on_qwords_add");
216 ripper_id_qwords_new = rb_intern_const("on_qwords_new");
217 ripper_id_redo = rb_intern_const("on_redo");
218 ripper_id_regexp_add = rb_intern_const("on_regexp_add");
219 ripper_id_regexp_literal = rb_intern_const("on_regexp_literal");
220 ripper_id_regexp_new = rb_intern_const("on_regexp_new");
221 ripper_id_rescue = rb_intern_const("on_rescue");
222 ripper_id_rescue_mod = rb_intern_const("on_rescue_mod");
223 ripper_id_rest_param = rb_intern_const("on_rest_param");
224 ripper_id_retry = rb_intern_const("on_retry");
225 ripper_id_return = rb_intern_const("on_return");
226 ripper_id_return0 = rb_intern_const("on_return0");
227 ripper_id_sclass = rb_intern_const("on_sclass");
228 ripper_id_stmts_add = rb_intern_const("on_stmts_add");
229 ripper_id_stmts_new = rb_intern_const("on_stmts_new");
230 ripper_id_string_add = rb_intern_const("on_string_add");
231 ripper_id_string_concat = rb_intern_const("on_string_concat");
232 ripper_id_string_content = rb_intern_const("on_string_content");
233 ripper_id_string_dvar = rb_intern_const("on_string_dvar");
234 ripper_id_string_embexpr = rb_intern_const("on_string_embexpr");
235 ripper_id_string_literal = rb_intern_const("on_string_literal");
236 ripper_id_super = rb_intern_const("on_super");
237 ripper_id_symbol = rb_intern_const("on_symbol");
238 ripper_id_symbol_literal = rb_intern_const("on_symbol_literal");
239 ripper_id_symbols_add = rb_intern_const("on_symbols_add");
240 ripper_id_symbols_new = rb_intern_const("on_symbols_new");
241 ripper_id_top_const_field = rb_intern_const("on_top_const_field");
242 ripper_id_top_const_ref = rb_intern_const("on_top_const_ref");
243 ripper_id_unary = rb_intern_const("on_unary");
244 ripper_id_undef = rb_intern_const("on_undef");
245 ripper_id_unless = rb_intern_const("on_unless");
246 ripper_id_unless_mod = rb_intern_const("on_unless_mod");
247 ripper_id_until = rb_intern_const("on_until");
248 ripper_id_until_mod = rb_intern_const("on_until_mod");
249 ripper_id_var_alias = rb_intern_const("on_var_alias");
250 ripper_id_var_field = rb_intern_const("on_var_field");
251 ripper_id_var_ref = rb_intern_const("on_var_ref");
252 ripper_id_vcall = rb_intern_const("on_vcall");
253 ripper_id_void_stmt = rb_intern_const("on_void_stmt");
254 ripper_id_when = rb_intern_const("on_when");
255 ripper_id_while = rb_intern_const("on_while");
256 ripper_id_while_mod = rb_intern_const("on_while_mod");
257 ripper_id_word_add = rb_intern_const("on_word_add");
258 ripper_id_word_new = rb_intern_const("on_word_new");
259 ripper_id_words_add = rb_intern_const("on_words_add");
260 ripper_id_words_new = rb_intern_const("on_words_new");
261 ripper_id_xstring_add = rb_intern_const("on_xstring_add");
262 ripper_id_xstring_literal = rb_intern_const("on_xstring_literal");
263 ripper_id_xstring_new = rb_intern_const("on_xstring_new");
264 ripper_id_yield = rb_intern_const("on_yield");
265 ripper_id_yield0 = rb_intern_const("on_yield0");
266 ripper_id_zsuper = rb_intern_const("on_zsuper");
267 }
268
269 static void
270 ripper_init_eventids1_table(VALUE self)
271 {
272 VALUE h = rb_hash_new();
273 ID id;
274 rb_define_const(self, "PARSER_EVENT_TABLE", h);
275 id = rb_intern_const("BEGIN");
276 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
277 id = rb_intern_const("END");
278 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
279 id = rb_intern_const("alias");
280 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
281 id = rb_intern_const("alias_error");
282 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
283 id = rb_intern_const("aref");
284 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
285 id = rb_intern_const("aref_field");
286 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
287 id = rb_intern_const("arg_ambiguous");
288 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
289 id = rb_intern_const("arg_paren");
290 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
291 id = rb_intern_const("args_add");
292 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
293 id = rb_intern_const("args_add_block");
294 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
295 id = rb_intern_const("args_add_star");
296 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
297 id = rb_intern_const("args_new");
298 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
299 id = rb_intern_const("array");
300 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
301 id = rb_intern_const("assign");
302 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
303 id = rb_intern_const("assign_error");
304 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
305 id = rb_intern_const("assoc_new");
306 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
307 id = rb_intern_const("assoc_splat");
308 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
309 id = rb_intern_const("assoclist_from_args");
310 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
311 id = rb_intern_const("bare_assoc_hash");
312 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
313 id = rb_intern_const("begin");
314 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
315 id = rb_intern_const("binary");
316 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
317 id = rb_intern_const("block_var");
318 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
319 id = rb_intern_const("block_var_add_block");
320 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
321 id = rb_intern_const("block_var_add_star");
322 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
323 id = rb_intern_const("blockarg");
324 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
325 id = rb_intern_const("bodystmt");
326 rb_hash_aset(h, ID2SYM(id), INT2NUM(4));
327 id = rb_intern_const("brace_block");
328 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
329 id = rb_intern_const("break");
330 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
331 id = rb_intern_const("call");
332 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
333 id = rb_intern_const("case");
334 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
335 id = rb_intern_const("class");
336 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
337 id = rb_intern_const("class_name_error");
338 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
339 id = rb_intern_const("command");
340 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
341 id = rb_intern_const("command_call");
342 rb_hash_aset(h, ID2SYM(id), INT2NUM(4));
343 id = rb_intern_const("const_path_field");
344 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
345 id = rb_intern_const("const_path_ref");
346 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
347 id = rb_intern_const("const_ref");
348 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
349 id = rb_intern_const("def");
350 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
351 id = rb_intern_const("defined");
352 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
353 id = rb_intern_const("defs");
354 rb_hash_aset(h, ID2SYM(id), INT2NUM(5));
355 id = rb_intern_const("do_block");
356 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
357 id = rb_intern_const("dot2");
358 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
359 id = rb_intern_const("dot3");
360 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
361 id = rb_intern_const("dyna_symbol");
362 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
363 id = rb_intern_const("else");
364 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
365 id = rb_intern_const("elsif");
366 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
367 id = rb_intern_const("ensure");
368 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
369 id = rb_intern_const("excessed_comma");
370 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
371 id = rb_intern_const("fcall");
372 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
373 id = rb_intern_const("field");
374 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
375 id = rb_intern_const("for");
376 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
377 id = rb_intern_const("hash");
378 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
379 id = rb_intern_const("if");
380 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
381 id = rb_intern_const("if_mod");
382 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
383 id = rb_intern_const("ifop");
384 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
385 id = rb_intern_const("lambda");
386 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
387 id = rb_intern_const("magic_comment");
388 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
389 id = rb_intern_const("massign");
390 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
391 id = rb_intern_const("method_add_arg");
392 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
393 id = rb_intern_const("method_add_block");
394 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
395 id = rb_intern_const("mlhs_add");
396 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
397 id = rb_intern_const("mlhs_add_star");
398 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
399 id = rb_intern_const("mlhs_new");
400 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
401 id = rb_intern_const("mlhs_paren");
402 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
403 id = rb_intern_const("module");
404 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
405 id = rb_intern_const("mrhs_add");
406 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
407 id = rb_intern_const("mrhs_add_star");
408 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
409 id = rb_intern_const("mrhs_new");
410 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
411 id = rb_intern_const("mrhs_new_from_args");
412 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
413 id = rb_intern_const("next");
414 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
415 id = rb_intern_const("opassign");
416 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
417 id = rb_intern_const("operator_ambiguous");
418 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
419 id = rb_intern_const("param_error");
420 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
421 id = rb_intern_const("params");
422 rb_hash_aset(h, ID2SYM(id), INT2NUM(7));
423 id = rb_intern_const("paren");
424 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
425 id = rb_intern_const("parse_error");
426 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
427 id = rb_intern_const("program");
428 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
429 id = rb_intern_const("qsymbols_add");
430 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
431 id = rb_intern_const("qsymbols_new");
432 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
433 id = rb_intern_const("qwords_add");
434 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
435 id = rb_intern_const("qwords_new");
436 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
437 id = rb_intern_const("redo");
438 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
439 id = rb_intern_const("regexp_add");
440 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
441 id = rb_intern_const("regexp_literal");
442 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
443 id = rb_intern_const("regexp_new");
444 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
445 id = rb_intern_const("rescue");
446 rb_hash_aset(h, ID2SYM(id), INT2NUM(4));
447 id = rb_intern_const("rescue_mod");
448 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
449 id = rb_intern_const("rest_param");
450 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
451 id = rb_intern_const("retry");
452 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
453 id = rb_intern_const("return");
454 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
455 id = rb_intern_const("return0");
456 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
457 id = rb_intern_const("sclass");
458 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
459 id = rb_intern_const("stmts_add");
460 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
461 id = rb_intern_const("stmts_new");
462 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
463 id = rb_intern_const("string_add");
464 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
465 id = rb_intern_const("string_concat");
466 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
467 id = rb_intern_const("string_content");
468 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
469 id = rb_intern_const("string_dvar");
470 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
471 id = rb_intern_const("string_embexpr");
472 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
473 id = rb_intern_const("string_literal");
474 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
475 id = rb_intern_const("super");
476 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
477 id = rb_intern_const("symbol");
478 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
479 id = rb_intern_const("symbol_literal");
480 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
481 id = rb_intern_const("symbols_add");
482 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
483 id = rb_intern_const("symbols_new");
484 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
485 id = rb_intern_const("top_const_field");
486 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
487 id = rb_intern_const("top_const_ref");
488 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
489 id = rb_intern_const("unary");
490 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
491 id = rb_intern_const("undef");
492 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
493 id = rb_intern_const("unless");
494 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
495 id = rb_intern_const("unless_mod");
496 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
497 id = rb_intern_const("until");
498 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
499 id = rb_intern_const("until_mod");
500 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
501 id = rb_intern_const("var_alias");
502 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
503 id = rb_intern_const("var_field");
504 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
505 id = rb_intern_const("var_ref");
506 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
507 id = rb_intern_const("vcall");
508 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
509 id = rb_intern_const("void_stmt");
510 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
511 id = rb_intern_const("when");
512 rb_hash_aset(h, ID2SYM(id), INT2NUM(3));
513 id = rb_intern_const("while");
514 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
515 id = rb_intern_const("while_mod");
516 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
517 id = rb_intern_const("word_add");
518 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
519 id = rb_intern_const("word_new");
520 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
521 id = rb_intern_const("words_add");
522 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
523 id = rb_intern_const("words_new");
524 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
525 id = rb_intern_const("xstring_add");
526 rb_hash_aset(h, ID2SYM(id), INT2NUM(2));
527 id = rb_intern_const("xstring_literal");
528 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
529 id = rb_intern_const("xstring_new");
530 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
531 id = rb_intern_const("yield");
532 rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
533 id = rb_intern_const("yield0");
534 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
535 id = rb_intern_const("zsuper");
536 rb_hash_aset(h, ID2SYM(id), INT2NUM(0));
537 }
ripper_id_assoc_splat
static ID ripper_id_assoc_splat
Definition: eventids1.c:17
ripper_id_string_literal
static ID ripper_id_string_literal
Definition: eventids1.c:100
ripper_id_sclass
static ID ripper_id_sclass
Definition: eventids1.c:92
ripper_id_var_field
static ID ripper_id_var_field
Definition: eventids1.c:115
ripper_id_opassign
static ID ripper_id_opassign
Definition: eventids1.c:71
ripper_id_word_new
static ID ripper_id_word_new
Definition: eventids1.c:123
ripper_id_method_add_block
static ID ripper_id_method_add_block
Definition: eventids1.c:60
ripper_id_params
static ID ripper_id_params
Definition: eventids1.c:74
ripper_id_until_mod
static ID ripper_id_until_mod
Definition: eventids1.c:113
ripper_id_module
static ID ripper_id_module
Definition: eventids1.c:65
ripper_id_symbol_literal
static ID ripper_id_symbol_literal
Definition: eventids1.c:103
ripper_id_string_concat
static ID ripper_id_string_concat
Definition: eventids1.c:96
ripper_id_for
static ID ripper_id_for
Definition: eventids1.c:51
ripper_id_class_name_error
static ID ripper_id_class_name_error
Definition: eventids1.c:32
ripper_id_array
static ID ripper_id_array
Definition: eventids1.c:13
ripper_id_method_add_arg
static ID ripper_id_method_add_arg
Definition: eventids1.c:59
ripper_id_break
static ID ripper_id_break
Definition: eventids1.c:28
ripper_id_alias
static ID ripper_id_alias
Definition: eventids1.c:3
ripper_id_parse_error
static ID ripper_id_parse_error
Definition: eventids1.c:76
ripper_id_const_path_ref
static ID ripper_id_const_path_ref
Definition: eventids1.c:36
ripper_id_xstring_new
static ID ripper_id_xstring_new
Definition: eventids1.c:128
ripper_id_var_alias
static ID ripper_id_var_alias
Definition: eventids1.c:114
ripper_id_unless
static ID ripper_id_unless
Definition: eventids1.c:110
ripper_id_symbols_new
static ID ripper_id_symbols_new
Definition: eventids1.c:105
ripper_id_redo
static ID ripper_id_redo
Definition: eventids1.c:82
ripper_id_mrhs_new
static ID ripper_id_mrhs_new
Definition: eventids1.c:68
ripper_id_qsymbols_new
static ID ripper_id_qsymbols_new
Definition: eventids1.c:79
ripper_id_blockarg
static ID ripper_id_blockarg
Definition: eventids1.c:25
ripper_id_case
static ID ripper_id_case
Definition: eventids1.c:30
ripper_id_excessed_comma
static ID ripper_id_excessed_comma
Definition: eventids1.c:48
ripper_init_eventids1_table
static void ripper_init_eventids1_table(VALUE self)
Definition: eventids1.c:270
ripper_id_var_ref
static ID ripper_id_var_ref
Definition: eventids1.c:116
ripper_id_mlhs_new
static ID ripper_id_mlhs_new
Definition: eventids1.c:63
ripper_id_top_const_ref
static ID ripper_id_top_const_ref
Definition: eventids1.c:107
ripper_id_mlhs_add
static ID ripper_id_mlhs_add
Definition: eventids1.c:61
ripper_id_retry
static ID ripper_id_retry
Definition: eventids1.c:89
ripper_id_operator_ambiguous
static ID ripper_id_operator_ambiguous
Definition: eventids1.c:72
ripper_id_qsymbols_add
static ID ripper_id_qsymbols_add
Definition: eventids1.c:78
ripper_id_string_embexpr
static ID ripper_id_string_embexpr
Definition: eventids1.c:99
ripper_id_block_var_add_block
static ID ripper_id_block_var_add_block
Definition: eventids1.c:23
ripper_id_stmts_add
static ID ripper_id_stmts_add
Definition: eventids1.c:93
ripper_id_args_add
static ID ripper_id_args_add
Definition: eventids1.c:9
ID2SYM
#define ID2SYM(x)
ripper_id_rest_param
static ID ripper_id_rest_param
Definition: eventids1.c:88
ripper_id_until
static ID ripper_id_until
Definition: eventids1.c:112
ripper_id_BEGIN
static ID ripper_id_BEGIN
Definition: eventids1.c:1
ripper_id_elsif
static ID ripper_id_elsif
Definition: eventids1.c:46
ripper_id_qwords_new
static ID ripper_id_qwords_new
Definition: eventids1.c:81
ripper_id_when
static ID ripper_id_when
Definition: eventids1.c:119
ripper_id_symbols_add
static ID ripper_id_symbols_add
Definition: eventids1.c:104
ripper_id_args_new
static ID ripper_id_args_new
Definition: eventids1.c:12
ripper_id_args_add_block
static ID ripper_id_args_add_block
Definition: eventids1.c:10
ripper_id_arg_paren
static ID ripper_id_arg_paren
Definition: eventids1.c:8
ripper_id_xstring_add
static ID ripper_id_xstring_add
Definition: eventids1.c:126
ripper_id_field
static ID ripper_id_field
Definition: eventids1.c:50
ID
unsigned long ID
Definition: ripper.y:105
rb_define_const
void rb_define_const(VALUE, const char *, VALUE)
Definition: variable.c:2202
ripper_id_while
static ID ripper_id_while
Definition: eventids1.c:120
ripper_id_const_ref
static ID ripper_id_const_ref
Definition: eventids1.c:37
ripper_id_xstring_literal
static ID ripper_id_xstring_literal
Definition: eventids1.c:127
ripper_id_command
static ID ripper_id_command
Definition: eventids1.c:33
ripper_id_ensure
static ID ripper_id_ensure
Definition: eventids1.c:47
ripper_init_eventids1
static void ripper_init_eventids1(void)
Definition: eventids1.c:134
ripper_id_defs
static ID ripper_id_defs
Definition: eventids1.c:40
ripper_id_word_add
static ID ripper_id_word_add
Definition: eventids1.c:122
ripper_id_args_add_star
static ID ripper_id_args_add_star
Definition: eventids1.c:11
ripper_id_call
static ID ripper_id_call
Definition: eventids1.c:29
ripper_id_program
static ID ripper_id_program
Definition: eventids1.c:77
ripper_id_fcall
static ID ripper_id_fcall
Definition: eventids1.c:49
ripper_id_assoc_new
static ID ripper_id_assoc_new
Definition: eventids1.c:16
ripper_id_magic_comment
static ID ripper_id_magic_comment
Definition: eventids1.c:57
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
ripper_id_string_add
static ID ripper_id_string_add
Definition: eventids1.c:95
id
const int id
Definition: nkf.c:209
ripper_id_unless_mod
static ID ripper_id_unless_mod
Definition: eventids1.c:111
ripper_id_dyna_symbol
static ID ripper_id_dyna_symbol
Definition: eventids1.c:44
ripper_id_return
static ID ripper_id_return
Definition: eventids1.c:90
ripper_id_arg_ambiguous
static ID ripper_id_arg_ambiguous
Definition: eventids1.c:7
ripper_id_do_block
static ID ripper_id_do_block
Definition: eventids1.c:41
ripper_id_block_var_add_star
static ID ripper_id_block_var_add_star
Definition: eventids1.c:24
ripper_id_assoclist_from_args
static ID ripper_id_assoclist_from_args
Definition: eventids1.c:18
ripper_id_aref
static ID ripper_id_aref
Definition: eventids1.c:5
ripper_id_next
static ID ripper_id_next
Definition: eventids1.c:70
ripper_id_binary
static ID ripper_id_binary
Definition: eventids1.c:21
ripper_id_brace_block
static ID ripper_id_brace_block
Definition: eventids1.c:27
ripper_id_regexp_add
static ID ripper_id_regexp_add
Definition: eventids1.c:83
ripper_id_hash
static ID ripper_id_hash
Definition: eventids1.c:52
ripper_id_param_error
static ID ripper_id_param_error
Definition: eventids1.c:73
ripper_id_yield0
static ID ripper_id_yield0
Definition: eventids1.c:130
ripper_id_END
static ID ripper_id_END
Definition: eventids1.c:2
ripper_id_undef
static ID ripper_id_undef
Definition: eventids1.c:109
ripper_id_bare_assoc_hash
static ID ripper_id_bare_assoc_hash
Definition: eventids1.c:19
ripper_id_defined
static ID ripper_id_defined
Definition: eventids1.c:39
ripper_id_dot2
static ID ripper_id_dot2
Definition: eventids1.c:42
ripper_id_unary
static ID ripper_id_unary
Definition: eventids1.c:108
ripper_id_mrhs_add
static ID ripper_id_mrhs_add
Definition: eventids1.c:66
ripper_id_void_stmt
static ID ripper_id_void_stmt
Definition: eventids1.c:118
ripper_id_alias_error
static ID ripper_id_alias_error
Definition: eventids1.c:4
rb_intern_const
#define rb_intern_const(str)
ripper_id_def
static ID ripper_id_def
Definition: eventids1.c:38
ripper_id_paren
static ID ripper_id_paren
Definition: eventids1.c:75
ripper_id_else
static ID ripper_id_else
Definition: eventids1.c:45
ripper_id_begin
static ID ripper_id_begin
Definition: eventids1.c:20
ripper_id_dot3
static ID ripper_id_dot3
Definition: eventids1.c:43
ripper_id_lambda
static ID ripper_id_lambda
Definition: eventids1.c:56
ripper_id_string_dvar
static ID ripper_id_string_dvar
Definition: eventids1.c:98
ripper_id_symbol
static ID ripper_id_symbol
Definition: eventids1.c:102
ripper_id_regexp_new
static ID ripper_id_regexp_new
Definition: eventids1.c:85
ripper_id_assign_error
static ID ripper_id_assign_error
Definition: eventids1.c:15
ripper_id_command_call
static ID ripper_id_command_call
Definition: eventids1.c:34
ripper_id_if
static ID ripper_id_if
Definition: eventids1.c:53
ripper_id_assign
static ID ripper_id_assign
Definition: eventids1.c:14
ripper_id_yield
static ID ripper_id_yield
Definition: eventids1.c:129
ripper_id_const_path_field
static ID ripper_id_const_path_field
Definition: eventids1.c:35
ripper_id_rescue_mod
static ID ripper_id_rescue_mod
Definition: eventids1.c:87
INT2NUM
#define INT2NUM(x)
ripper_id_vcall
static ID ripper_id_vcall
Definition: eventids1.c:117
ripper_id_string_content
static ID ripper_id_string_content
Definition: eventids1.c:97
ripper_id_while_mod
static ID ripper_id_while_mod
Definition: eventids1.c:121
ripper_id_super
static ID ripper_id_super
Definition: eventids1.c:101
ripper_id_regexp_literal
static ID ripper_id_regexp_literal
Definition: eventids1.c:84
ripper_id_return0
static ID ripper_id_return0
Definition: eventids1.c:91
rb_hash_new
VALUE rb_hash_new(void)
Definition: hash.c:234
ripper_id_block_var
static ID ripper_id_block_var
Definition: eventids1.c:22
ripper_id_qwords_add
static ID ripper_id_qwords_add
Definition: eventids1.c:80
ripper_id_bodystmt
static ID ripper_id_bodystmt
Definition: eventids1.c:26
ripper_id_massign
static ID ripper_id_massign
Definition: eventids1.c:58
VALUE
unsigned long VALUE
Definition: ripper.y:104
ripper_id_mrhs_add_star
static ID ripper_id_mrhs_add_star
Definition: eventids1.c:67
ripper_id_mlhs_paren
static ID ripper_id_mlhs_paren
Definition: eventids1.c:64
ripper_id_mlhs_add_star
static ID ripper_id_mlhs_add_star
Definition: eventids1.c:62
ripper_id_ifop
static ID ripper_id_ifop
Definition: eventids1.c:55
ripper_id_words_new
static ID ripper_id_words_new
Definition: eventids1.c:125
ripper_id_mrhs_new_from_args
static ID ripper_id_mrhs_new_from_args
Definition: eventids1.c:69
ripper_id_aref_field
static ID ripper_id_aref_field
Definition: eventids1.c:6
ripper_id_if_mod
static ID ripper_id_if_mod
Definition: eventids1.c:54
ripper_id_zsuper
static ID ripper_id_zsuper
Definition: eventids1.c:131
ripper_id_rescue
static ID ripper_id_rescue
Definition: eventids1.c:86
ripper_id_words_add
static ID ripper_id_words_add
Definition: eventids1.c:124
ripper_id_class
static ID ripper_id_class
Definition: eventids1.c:31
ripper_id_stmts_new
static ID ripper_id_stmts_new
Definition: eventids1.c:94
ripper_id_top_const_field
static ID ripper_id_top_const_field
Definition: eventids1.c:106