Ruby  2.5.0dev(2017-10-22revision60238)
eventids1.c
Go to the documentation of this file.
1 static struct {
134 } ripper_parser_ids;
135 
136 #define ripper_id_BEGIN ripper_parser_ids.id_BEGIN
137 #define ripper_id_END ripper_parser_ids.id_END
138 #define ripper_id_alias ripper_parser_ids.id_alias
139 #define ripper_id_alias_error ripper_parser_ids.id_alias_error
140 #define ripper_id_aref ripper_parser_ids.id_aref
141 #define ripper_id_aref_field ripper_parser_ids.id_aref_field
142 #define ripper_id_arg_ambiguous ripper_parser_ids.id_arg_ambiguous
143 #define ripper_id_arg_paren ripper_parser_ids.id_arg_paren
144 #define ripper_id_args_add ripper_parser_ids.id_args_add
145 #define ripper_id_args_add_block ripper_parser_ids.id_args_add_block
146 #define ripper_id_args_add_star ripper_parser_ids.id_args_add_star
147 #define ripper_id_args_new ripper_parser_ids.id_args_new
148 #define ripper_id_array ripper_parser_ids.id_array
149 #define ripper_id_assign ripper_parser_ids.id_assign
150 #define ripper_id_assign_error ripper_parser_ids.id_assign_error
151 #define ripper_id_assoc_new ripper_parser_ids.id_assoc_new
152 #define ripper_id_assoc_splat ripper_parser_ids.id_assoc_splat
153 #define ripper_id_assoclist_from_args ripper_parser_ids.id_assoclist_from_args
154 #define ripper_id_bare_assoc_hash ripper_parser_ids.id_bare_assoc_hash
155 #define ripper_id_begin ripper_parser_ids.id_begin
156 #define ripper_id_binary ripper_parser_ids.id_binary
157 #define ripper_id_block_var ripper_parser_ids.id_block_var
158 #define ripper_id_blockarg ripper_parser_ids.id_blockarg
159 #define ripper_id_bodystmt ripper_parser_ids.id_bodystmt
160 #define ripper_id_brace_block ripper_parser_ids.id_brace_block
161 #define ripper_id_break ripper_parser_ids.id_break
162 #define ripper_id_call ripper_parser_ids.id_call
163 #define ripper_id_case ripper_parser_ids.id_case
164 #define ripper_id_class ripper_parser_ids.id_class
165 #define ripper_id_class_name_error ripper_parser_ids.id_class_name_error
166 #define ripper_id_command ripper_parser_ids.id_command
167 #define ripper_id_command_call ripper_parser_ids.id_command_call
168 #define ripper_id_const_path_field ripper_parser_ids.id_const_path_field
169 #define ripper_id_const_path_ref ripper_parser_ids.id_const_path_ref
170 #define ripper_id_const_ref ripper_parser_ids.id_const_ref
171 #define ripper_id_def ripper_parser_ids.id_def
172 #define ripper_id_defined ripper_parser_ids.id_defined
173 #define ripper_id_defs ripper_parser_ids.id_defs
174 #define ripper_id_do_block ripper_parser_ids.id_do_block
175 #define ripper_id_dot2 ripper_parser_ids.id_dot2
176 #define ripper_id_dot3 ripper_parser_ids.id_dot3
177 #define ripper_id_dyna_symbol ripper_parser_ids.id_dyna_symbol
178 #define ripper_id_else ripper_parser_ids.id_else
179 #define ripper_id_elsif ripper_parser_ids.id_elsif
180 #define ripper_id_ensure ripper_parser_ids.id_ensure
181 #define ripper_id_excessed_comma ripper_parser_ids.id_excessed_comma
182 #define ripper_id_fcall ripper_parser_ids.id_fcall
183 #define ripper_id_field ripper_parser_ids.id_field
184 #define ripper_id_for ripper_parser_ids.id_for
185 #define ripper_id_hash ripper_parser_ids.id_hash
186 #define ripper_id_heredoc_dedent ripper_parser_ids.id_heredoc_dedent
187 #define ripper_id_if ripper_parser_ids.id_if
188 #define ripper_id_if_mod ripper_parser_ids.id_if_mod
189 #define ripper_id_ifop ripper_parser_ids.id_ifop
190 #define ripper_id_kwrest_param ripper_parser_ids.id_kwrest_param
191 #define ripper_id_lambda ripper_parser_ids.id_lambda
192 #define ripper_id_magic_comment ripper_parser_ids.id_magic_comment
193 #define ripper_id_massign ripper_parser_ids.id_massign
194 #define ripper_id_method_add_arg ripper_parser_ids.id_method_add_arg
195 #define ripper_id_method_add_block ripper_parser_ids.id_method_add_block
196 #define ripper_id_mlhs_add ripper_parser_ids.id_mlhs_add
197 #define ripper_id_mlhs_add_post ripper_parser_ids.id_mlhs_add_post
198 #define ripper_id_mlhs_add_star ripper_parser_ids.id_mlhs_add_star
199 #define ripper_id_mlhs_new ripper_parser_ids.id_mlhs_new
200 #define ripper_id_mlhs_paren ripper_parser_ids.id_mlhs_paren
201 #define ripper_id_module ripper_parser_ids.id_module
202 #define ripper_id_mrhs_add ripper_parser_ids.id_mrhs_add
203 #define ripper_id_mrhs_add_star ripper_parser_ids.id_mrhs_add_star
204 #define ripper_id_mrhs_new ripper_parser_ids.id_mrhs_new
205 #define ripper_id_mrhs_new_from_args ripper_parser_ids.id_mrhs_new_from_args
206 #define ripper_id_next ripper_parser_ids.id_next
207 #define ripper_id_opassign ripper_parser_ids.id_opassign
208 #define ripper_id_operator_ambiguous ripper_parser_ids.id_operator_ambiguous
209 #define ripper_id_param_error ripper_parser_ids.id_param_error
210 #define ripper_id_params ripper_parser_ids.id_params
211 #define ripper_id_paren ripper_parser_ids.id_paren
212 #define ripper_id_parse_error ripper_parser_ids.id_parse_error
213 #define ripper_id_program ripper_parser_ids.id_program
214 #define ripper_id_qsymbols_add ripper_parser_ids.id_qsymbols_add
215 #define ripper_id_qsymbols_new ripper_parser_ids.id_qsymbols_new
216 #define ripper_id_qwords_add ripper_parser_ids.id_qwords_add
217 #define ripper_id_qwords_new ripper_parser_ids.id_qwords_new
218 #define ripper_id_redo ripper_parser_ids.id_redo
219 #define ripper_id_regexp_add ripper_parser_ids.id_regexp_add
220 #define ripper_id_regexp_literal ripper_parser_ids.id_regexp_literal
221 #define ripper_id_regexp_new ripper_parser_ids.id_regexp_new
222 #define ripper_id_rescue ripper_parser_ids.id_rescue
223 #define ripper_id_rescue_mod ripper_parser_ids.id_rescue_mod
224 #define ripper_id_rest_param ripper_parser_ids.id_rest_param
225 #define ripper_id_retry ripper_parser_ids.id_retry
226 #define ripper_id_return ripper_parser_ids.id_return
227 #define ripper_id_return0 ripper_parser_ids.id_return0
228 #define ripper_id_sclass ripper_parser_ids.id_sclass
229 #define ripper_id_stmts_add ripper_parser_ids.id_stmts_add
230 #define ripper_id_stmts_new ripper_parser_ids.id_stmts_new
231 #define ripper_id_string_add ripper_parser_ids.id_string_add
232 #define ripper_id_string_concat ripper_parser_ids.id_string_concat
233 #define ripper_id_string_content ripper_parser_ids.id_string_content
234 #define ripper_id_string_dvar ripper_parser_ids.id_string_dvar
235 #define ripper_id_string_embexpr ripper_parser_ids.id_string_embexpr
236 #define ripper_id_string_literal ripper_parser_ids.id_string_literal
237 #define ripper_id_super ripper_parser_ids.id_super
238 #define ripper_id_symbol ripper_parser_ids.id_symbol
239 #define ripper_id_symbol_literal ripper_parser_ids.id_symbol_literal
240 #define ripper_id_symbols_add ripper_parser_ids.id_symbols_add
241 #define ripper_id_symbols_new ripper_parser_ids.id_symbols_new
242 #define ripper_id_top_const_field ripper_parser_ids.id_top_const_field
243 #define ripper_id_top_const_ref ripper_parser_ids.id_top_const_ref
244 #define ripper_id_unary ripper_parser_ids.id_unary
245 #define ripper_id_undef ripper_parser_ids.id_undef
246 #define ripper_id_unless ripper_parser_ids.id_unless
247 #define ripper_id_unless_mod ripper_parser_ids.id_unless_mod
248 #define ripper_id_until ripper_parser_ids.id_until
249 #define ripper_id_until_mod ripper_parser_ids.id_until_mod
250 #define ripper_id_var_alias ripper_parser_ids.id_var_alias
251 #define ripper_id_var_field ripper_parser_ids.id_var_field
252 #define ripper_id_var_ref ripper_parser_ids.id_var_ref
253 #define ripper_id_vcall ripper_parser_ids.id_vcall
254 #define ripper_id_void_stmt ripper_parser_ids.id_void_stmt
255 #define ripper_id_when ripper_parser_ids.id_when
256 #define ripper_id_while ripper_parser_ids.id_while
257 #define ripper_id_while_mod ripper_parser_ids.id_while_mod
258 #define ripper_id_word_add ripper_parser_ids.id_word_add
259 #define ripper_id_word_new ripper_parser_ids.id_word_new
260 #define ripper_id_words_add ripper_parser_ids.id_words_add
261 #define ripper_id_words_new ripper_parser_ids.id_words_new
262 #define ripper_id_xstring_add ripper_parser_ids.id_xstring_add
263 #define ripper_id_xstring_literal ripper_parser_ids.id_xstring_literal
264 #define ripper_id_xstring_new ripper_parser_ids.id_xstring_new
265 #define ripper_id_yield ripper_parser_ids.id_yield
266 #define ripper_id_yield0 ripper_parser_ids.id_yield0
267 #define ripper_id_zsuper ripper_parser_ids.id_zsuper
268 
269 static void
270 ripper_init_eventids1(void)
271 {
272 #define set_id1(name) ripper_id_##name = rb_intern_const("on_"#name)
273  set_id1(BEGIN);
274  set_id1(END);
275  set_id1(alias);
276  set_id1(alias_error);
277  set_id1(aref);
278  set_id1(aref_field);
280  set_id1(arg_paren);
281  set_id1(args_add);
282  set_id1(args_add_block);
283  set_id1(args_add_star);
284  set_id1(args_new);
285  set_id1(array);
286  set_id1(assign);
287  set_id1(assign_error);
288  set_id1(assoc_new);
289  set_id1(assoc_splat);
290  set_id1(assoclist_from_args);
291  set_id1(bare_assoc_hash);
292  set_id1(begin);
293  set_id1(binary);
294  set_id1(block_var);
295  set_id1(blockarg);
296  set_id1(bodystmt);
297  set_id1(brace_block);
298  set_id1(break);
299  set_id1(call);
300  set_id1(case);
301  set_id1(class);
302  set_id1(class_name_error);
303  set_id1(command);
304  set_id1(command_call);
306  set_id1(const_path_ref);
307  set_id1(const_ref);
308  set_id1(def);
309  set_id1(defined);
310  set_id1(defs);
311  set_id1(do_block);
312  set_id1(dot2);
313  set_id1(dot3);
314  set_id1(dyna_symbol);
315  set_id1(else);
316  set_id1(elsif);
317  set_id1(ensure);
318  set_id1(excessed_comma);
319  set_id1(fcall);
320  set_id1(field);
321  set_id1(for);
322  set_id1(hash);
324  set_id1(if);
325  set_id1(if_mod);
326  set_id1(ifop);
327  set_id1(kwrest_param);
328  set_id1(lambda);
330  set_id1(massign);
331  set_id1(method_add_arg);
333  set_id1(mlhs_add);
334  set_id1(mlhs_add_post);
335  set_id1(mlhs_add_star);
336  set_id1(mlhs_new);
337  set_id1(mlhs_paren);
338  set_id1(module);
339  set_id1(mrhs_add);
340  set_id1(mrhs_add_star);
341  set_id1(mrhs_new);
342  set_id1(mrhs_new_from_args);
343  set_id1(next);
344  set_id1(opassign);
345  set_id1(operator_ambiguous);
346  set_id1(param_error);
347  set_id1(params);
348  set_id1(paren);
349  set_id1(parse_error);
350  set_id1(program);
351  set_id1(qsymbols_add);
352  set_id1(qsymbols_new);
353  set_id1(qwords_add);
354  set_id1(qwords_new);
355  set_id1(redo);
356  set_id1(regexp_add);
357  set_id1(regexp_literal);
358  set_id1(regexp_new);
359  set_id1(rescue);
360  set_id1(rescue_mod);
361  set_id1(rest_param);
362  set_id1(retry);
363  set_id1(return);
364  set_id1(return0);
365  set_id1(sclass);
366  set_id1(stmts_add);
367  set_id1(stmts_new);
368  set_id1(string_add);
369  set_id1(string_concat);
370  set_id1(string_content);
371  set_id1(string_dvar);
372  set_id1(string_embexpr);
373  set_id1(string_literal);
374  set_id1(super);
375  set_id1(symbol);
376  set_id1(symbol_literal);
377  set_id1(symbols_add);
378  set_id1(symbols_new);
380  set_id1(top_const_ref);
381  set_id1(unary);
382  set_id1(undef);
383  set_id1(unless);
384  set_id1(unless_mod);
385  set_id1(until);
386  set_id1(until_mod);
387  set_id1(var_alias);
389  set_id1(var_ref);
390  set_id1(vcall);
391  set_id1(void_stmt);
392  set_id1(when);
393  set_id1(while);
394  set_id1(while_mod);
395  set_id1(word_add);
396  set_id1(word_new);
397  set_id1(words_add);
398  set_id1(words_new);
399  set_id1(xstring_add);
400  set_id1(xstring_literal);
401  set_id1(xstring_new);
402  set_id1(yield);
403  set_id1(yield0);
404  set_id1(zsuper);
405 }
406 
407 static void
408 ripper_init_eventids1_table(VALUE self)
409 {
410  VALUE h = rb_hash_new();
411  rb_define_const(self, "PARSER_EVENT_TABLE", h);
412  rb_hash_aset(h, intern_sym("BEGIN"), INT2FIX(1));
413  rb_hash_aset(h, intern_sym("END"), INT2FIX(1));
414  rb_hash_aset(h, intern_sym("alias"), INT2FIX(2));
415  rb_hash_aset(h, intern_sym("alias_error"), INT2FIX(1));
416  rb_hash_aset(h, intern_sym("aref"), INT2FIX(2));
417  rb_hash_aset(h, intern_sym("aref_field"), INT2FIX(2));
418  rb_hash_aset(h, intern_sym("arg_ambiguous"), INT2FIX(1));
419  rb_hash_aset(h, intern_sym("arg_paren"), INT2FIX(1));
420  rb_hash_aset(h, intern_sym("args_add"), INT2FIX(2));
421  rb_hash_aset(h, intern_sym("args_add_block"), INT2FIX(2));
422  rb_hash_aset(h, intern_sym("args_add_star"), INT2FIX(2));
423  rb_hash_aset(h, intern_sym("args_new"), INT2FIX(0));
424  rb_hash_aset(h, intern_sym("array"), INT2FIX(1));
425  rb_hash_aset(h, intern_sym("assign"), INT2FIX(2));
426  rb_hash_aset(h, intern_sym("assign_error"), INT2FIX(1));
427  rb_hash_aset(h, intern_sym("assoc_new"), INT2FIX(2));
428  rb_hash_aset(h, intern_sym("assoc_splat"), INT2FIX(1));
429  rb_hash_aset(h, intern_sym("assoclist_from_args"), INT2FIX(1));
430  rb_hash_aset(h, intern_sym("bare_assoc_hash"), INT2FIX(1));
431  rb_hash_aset(h, intern_sym("begin"), INT2FIX(1));
432  rb_hash_aset(h, intern_sym("binary"), INT2FIX(3));
433  rb_hash_aset(h, intern_sym("block_var"), INT2FIX(2));
434  rb_hash_aset(h, intern_sym("blockarg"), INT2FIX(1));
435  rb_hash_aset(h, intern_sym("bodystmt"), INT2FIX(4));
436  rb_hash_aset(h, intern_sym("brace_block"), INT2FIX(2));
437  rb_hash_aset(h, intern_sym("break"), INT2FIX(1));
438  rb_hash_aset(h, intern_sym("call"), INT2FIX(3));
439  rb_hash_aset(h, intern_sym("case"), INT2FIX(2));
440  rb_hash_aset(h, intern_sym("class"), INT2FIX(3));
441  rb_hash_aset(h, intern_sym("class_name_error"), INT2FIX(1));
442  rb_hash_aset(h, intern_sym("command"), INT2FIX(2));
443  rb_hash_aset(h, intern_sym("command_call"), INT2FIX(4));
444  rb_hash_aset(h, intern_sym("const_path_field"), INT2FIX(2));
445  rb_hash_aset(h, intern_sym("const_path_ref"), INT2FIX(2));
446  rb_hash_aset(h, intern_sym("const_ref"), INT2FIX(1));
447  rb_hash_aset(h, intern_sym("def"), INT2FIX(3));
448  rb_hash_aset(h, intern_sym("defined"), INT2FIX(1));
449  rb_hash_aset(h, intern_sym("defs"), INT2FIX(5));
450  rb_hash_aset(h, intern_sym("do_block"), INT2FIX(2));
451  rb_hash_aset(h, intern_sym("dot2"), INT2FIX(2));
452  rb_hash_aset(h, intern_sym("dot3"), INT2FIX(2));
453  rb_hash_aset(h, intern_sym("dyna_symbol"), INT2FIX(1));
454  rb_hash_aset(h, intern_sym("else"), INT2FIX(1));
455  rb_hash_aset(h, intern_sym("elsif"), INT2FIX(3));
456  rb_hash_aset(h, intern_sym("ensure"), INT2FIX(1));
457  rb_hash_aset(h, intern_sym("excessed_comma"), INT2FIX(1));
458  rb_hash_aset(h, intern_sym("fcall"), INT2FIX(1));
459  rb_hash_aset(h, intern_sym("field"), INT2FIX(3));
460  rb_hash_aset(h, intern_sym("for"), INT2FIX(3));
461  rb_hash_aset(h, intern_sym("hash"), INT2FIX(1));
462  rb_hash_aset(h, intern_sym("heredoc_dedent"), INT2FIX(2));
463  rb_hash_aset(h, intern_sym("if"), INT2FIX(3));
464  rb_hash_aset(h, intern_sym("if_mod"), INT2FIX(2));
465  rb_hash_aset(h, intern_sym("ifop"), INT2FIX(3));
466  rb_hash_aset(h, intern_sym("kwrest_param"), INT2FIX(1));
467  rb_hash_aset(h, intern_sym("lambda"), INT2FIX(2));
468  rb_hash_aset(h, intern_sym("magic_comment"), INT2FIX(2));
469  rb_hash_aset(h, intern_sym("massign"), INT2FIX(2));
470  rb_hash_aset(h, intern_sym("method_add_arg"), INT2FIX(2));
471  rb_hash_aset(h, intern_sym("method_add_block"), INT2FIX(2));
472  rb_hash_aset(h, intern_sym("mlhs_add"), INT2FIX(2));
473  rb_hash_aset(h, intern_sym("mlhs_add_post"), INT2FIX(2));
474  rb_hash_aset(h, intern_sym("mlhs_add_star"), INT2FIX(2));
475  rb_hash_aset(h, intern_sym("mlhs_new"), INT2FIX(0));
476  rb_hash_aset(h, intern_sym("mlhs_paren"), INT2FIX(1));
477  rb_hash_aset(h, intern_sym("module"), INT2FIX(2));
478  rb_hash_aset(h, intern_sym("mrhs_add"), INT2FIX(2));
479  rb_hash_aset(h, intern_sym("mrhs_add_star"), INT2FIX(2));
480  rb_hash_aset(h, intern_sym("mrhs_new"), INT2FIX(0));
481  rb_hash_aset(h, intern_sym("mrhs_new_from_args"), INT2FIX(1));
482  rb_hash_aset(h, intern_sym("next"), INT2FIX(1));
483  rb_hash_aset(h, intern_sym("opassign"), INT2FIX(3));
484  rb_hash_aset(h, intern_sym("operator_ambiguous"), INT2FIX(2));
485  rb_hash_aset(h, intern_sym("param_error"), INT2FIX(1));
486  rb_hash_aset(h, intern_sym("params"), INT2FIX(7));
487  rb_hash_aset(h, intern_sym("paren"), INT2FIX(1));
488  rb_hash_aset(h, intern_sym("parse_error"), INT2FIX(1));
489  rb_hash_aset(h, intern_sym("program"), INT2FIX(1));
490  rb_hash_aset(h, intern_sym("qsymbols_add"), INT2FIX(2));
491  rb_hash_aset(h, intern_sym("qsymbols_new"), INT2FIX(0));
492  rb_hash_aset(h, intern_sym("qwords_add"), INT2FIX(2));
493  rb_hash_aset(h, intern_sym("qwords_new"), INT2FIX(0));
494  rb_hash_aset(h, intern_sym("redo"), INT2FIX(0));
495  rb_hash_aset(h, intern_sym("regexp_add"), INT2FIX(2));
496  rb_hash_aset(h, intern_sym("regexp_literal"), INT2FIX(2));
497  rb_hash_aset(h, intern_sym("regexp_new"), INT2FIX(0));
498  rb_hash_aset(h, intern_sym("rescue"), INT2FIX(4));
499  rb_hash_aset(h, intern_sym("rescue_mod"), INT2FIX(2));
500  rb_hash_aset(h, intern_sym("rest_param"), INT2FIX(1));
501  rb_hash_aset(h, intern_sym("retry"), INT2FIX(0));
502  rb_hash_aset(h, intern_sym("return"), INT2FIX(1));
503  rb_hash_aset(h, intern_sym("return0"), INT2FIX(0));
504  rb_hash_aset(h, intern_sym("sclass"), INT2FIX(2));
505  rb_hash_aset(h, intern_sym("stmts_add"), INT2FIX(2));
506  rb_hash_aset(h, intern_sym("stmts_new"), INT2FIX(0));
507  rb_hash_aset(h, intern_sym("string_add"), INT2FIX(2));
508  rb_hash_aset(h, intern_sym("string_concat"), INT2FIX(2));
509  rb_hash_aset(h, intern_sym("string_content"), INT2FIX(0));
510  rb_hash_aset(h, intern_sym("string_dvar"), INT2FIX(1));
511  rb_hash_aset(h, intern_sym("string_embexpr"), INT2FIX(1));
512  rb_hash_aset(h, intern_sym("string_literal"), INT2FIX(1));
513  rb_hash_aset(h, intern_sym("super"), INT2FIX(1));
514  rb_hash_aset(h, intern_sym("symbol"), INT2FIX(1));
515  rb_hash_aset(h, intern_sym("symbol_literal"), INT2FIX(1));
516  rb_hash_aset(h, intern_sym("symbols_add"), INT2FIX(2));
517  rb_hash_aset(h, intern_sym("symbols_new"), INT2FIX(0));
518  rb_hash_aset(h, intern_sym("top_const_field"), INT2FIX(1));
519  rb_hash_aset(h, intern_sym("top_const_ref"), INT2FIX(1));
520  rb_hash_aset(h, intern_sym("unary"), INT2FIX(2));
521  rb_hash_aset(h, intern_sym("undef"), INT2FIX(1));
522  rb_hash_aset(h, intern_sym("unless"), INT2FIX(3));
523  rb_hash_aset(h, intern_sym("unless_mod"), INT2FIX(2));
524  rb_hash_aset(h, intern_sym("until"), INT2FIX(2));
525  rb_hash_aset(h, intern_sym("until_mod"), INT2FIX(2));
526  rb_hash_aset(h, intern_sym("var_alias"), INT2FIX(2));
527  rb_hash_aset(h, intern_sym("var_field"), INT2FIX(1));
528  rb_hash_aset(h, intern_sym("var_ref"), INT2FIX(1));
529  rb_hash_aset(h, intern_sym("vcall"), INT2FIX(1));
530  rb_hash_aset(h, intern_sym("void_stmt"), INT2FIX(0));
531  rb_hash_aset(h, intern_sym("when"), INT2FIX(3));
532  rb_hash_aset(h, intern_sym("while"), INT2FIX(2));
533  rb_hash_aset(h, intern_sym("while_mod"), INT2FIX(2));
534  rb_hash_aset(h, intern_sym("word_add"), INT2FIX(2));
535  rb_hash_aset(h, intern_sym("word_new"), INT2FIX(0));
536  rb_hash_aset(h, intern_sym("words_add"), INT2FIX(2));
537  rb_hash_aset(h, intern_sym("words_new"), INT2FIX(0));
538  rb_hash_aset(h, intern_sym("xstring_add"), INT2FIX(2));
539  rb_hash_aset(h, intern_sym("xstring_literal"), INT2FIX(1));
540  rb_hash_aset(h, intern_sym("xstring_new"), INT2FIX(0));
541  rb_hash_aset(h, intern_sym("yield"), INT2FIX(1));
542  rb_hash_aset(h, intern_sym("yield0"), INT2FIX(0));
543  rb_hash_aset(h, intern_sym("zsuper"), INT2FIX(0));
544 }
ID id_assign
Definition: eventids1.c:15
ID id_vcall
Definition: eventids1.c:119
ID id_assoc_splat
Definition: eventids1.c:18
ID id_symbol
Definition: eventids1.c:104
ID id_module
Definition: eventids1.c:67
ID id_qwords_new
Definition: eventids1.c:83
ID id_heredoc_dedent
Definition: eventids1.c:52
ID id_const_ref
Definition: eventids1.c:36
ID id_qwords_add
Definition: eventids1.c:82
ID id_rescue_mod
Definition: eventids1.c:89
ID id_alias
Definition: eventids1.c:4
ID id_const_path_field
Definition: eventids1.c:34
ID id_array
Definition: eventids1.c:14
ID id_mrhs_add_star
Definition: eventids1.c:69
ID id_BEGIN
Definition: eventids1.c:2
ID id_break
Definition: eventids1.c:27
ID id_if
Definition: eventids1.c:53
ID id_return
Definition: eventids1.c:92
ID id_words_new
Definition: eventids1.c:127
ID id_retry
Definition: eventids1.c:91
ID id_assoc_new
Definition: eventids1.c:17
ID id_field
Definition: eventids1.c:49
ID id_brace_block
Definition: eventids1.c:26
ID id_fcall
Definition: eventids1.c:48
ID id_stmts_new
Definition: eventids1.c:96
ID id_assign_error
Definition: eventids1.c:16
ID id_mlhs_add_post
Definition: eventids1.c:63
ID id_binary
Definition: eventids1.c:22
ID id_void_stmt
Definition: eventids1.c:120
ID id_block_var
Definition: eventids1.c:23
ID id_dot2
Definition: eventids1.c:41
ID id_string_concat
Definition: eventids1.c:98
const char * alias
Definition: nkf.c:1151
ID id_zsuper
Definition: eventids1.c:133
ID id_mlhs_add_star
Definition: eventids1.c:64
ID id_param_error
Definition: eventids1.c:75
ID id_var_ref
Definition: eventids1.c:118
ID id_symbols_new
Definition: eventids1.c:107
ID id_regexp_add
Definition: eventids1.c:85
ID id_words_add
Definition: eventids1.c:126
ID id_END
Definition: eventids1.c:3
ID id_method_add_block
Definition: eventids1.c:61
ID id_while_mod
Definition: eventids1.c:123
ID id_mrhs_new_from_args
Definition: eventids1.c:71
ID id_string_content
Definition: eventids1.c:99
ID id_string_literal
Definition: eventids1.c:102
ID id_symbol_literal
Definition: eventids1.c:105
ID id_paren
Definition: eventids1.c:77
ID id_string_dvar
Definition: eventids1.c:100
ID id_next
Definition: eventids1.c:72
ID id_mrhs_new
Definition: eventids1.c:70
ID id_var_alias
Definition: eventids1.c:116
ID id_hash
Definition: eventids1.c:51
#define const_path_field(w, n, column)
Definition: ripper.c:752
ID id_magic_comment
Definition: eventids1.c:58
VALUE rb_hash_aset(VALUE hash, VALUE key, VALUE val)
Definition: hash.c:1616
ID id_assoclist_from_args
Definition: eventids1.c:19
#define heredoc_dedent(str)
Definition: ripper.c:858
ID id_elsif
Definition: eventids1.c:45
ID id_unary
Definition: eventids1.c:110
ID id_yield0
Definition: eventids1.c:132
ID id_redo
Definition: eventids1.c:84
ID id_stmts_add
Definition: eventids1.c:95
ID id_unless
Definition: eventids1.c:112
ID id_arg_ambiguous
Definition: eventids1.c:8
ID id_when
Definition: eventids1.c:121
ID id_args_add_star
Definition: eventids1.c:12
ID id_aref_field
Definition: eventids1.c:7
ID id_dyna_symbol
Definition: eventids1.c:43
#define set_id1(name)
#define method_add_block(m, b)
Definition: ripper.c:710
ID id_word_add
Definition: eventids1.c:124
void rb_define_const(VALUE, const char *, VALUE)
Definition: variable.c:2691
ID id_massign
Definition: eventids1.c:59
#define top_const_field(n)
Definition: ripper.c:753
ID id_qsymbols_add
Definition: eventids1.c:80
ID id_string_embexpr
Definition: eventids1.c:101
ID id_super
Definition: eventids1.c:103
ID id_bare_assoc_hash
Definition: eventids1.c:20
#define END(no)
Definition: re.c:25
ID id_defined
Definition: eventids1.c:38
ID id_class
Definition: eventids1.c:30
ID id_mrhs_add
Definition: eventids1.c:68
ID id_xstring_add
Definition: eventids1.c:128
#define var_field(n)
Definition: ripper.c:757
ID id_command_call
Definition: eventids1.c:33
ID id_class_name_error
Definition: eventids1.c:31
ID id_mlhs_paren
Definition: eventids1.c:66
VALUE rb_hash_new(void)
Definition: hash.c:424
#define arg_ambiguous(c)
Definition: ripper.c:12920
ID id_rescue
Definition: eventids1.c:88
ID id_alias_error
Definition: eventids1.c:5
unsigned long ID
Definition: ruby.h:86
ID id_string_add
Definition: eventids1.c:97
ID id_call
Definition: eventids1.c:28
ID id_operator_ambiguous
Definition: eventids1.c:74
ID id_mlhs_add
Definition: eventids1.c:62
ID id_const_path_ref
Definition: eventids1.c:35
unsigned long VALUE
Definition: ruby.h:85
ID id_var_field
Definition: eventids1.c:117
ID id_qsymbols_new
Definition: eventids1.c:81
ID id_word_new
Definition: eventids1.c:125
ID id_params
Definition: eventids1.c:76
ID id_xstring_new
Definition: eventids1.c:130
ID id_top_const_field
Definition: eventids1.c:108
ID id_defs
Definition: eventids1.c:39
ID id_yield
Definition: eventids1.c:131
ID id_blockarg
Definition: eventids1.c:24
ID id_mlhs_new
Definition: eventids1.c:65
ID id_until_mod
Definition: eventids1.c:115
ID id_xstring_literal
Definition: eventids1.c:129
ID id_args_add_block
Definition: eventids1.c:11
ID id_aref
Definition: eventids1.c:6
#define INT2FIX(i)
Definition: ruby.h:232
ID id_def
Definition: eventids1.c:37
ID id_top_const_ref
Definition: eventids1.c:109
ID id_arg_paren
Definition: eventids1.c:9
ID id_while
Definition: eventids1.c:122
ID id_return0
Definition: eventids1.c:93
ID id_opassign
Definition: eventids1.c:73
ID id_undef
Definition: eventids1.c:111
ID id_excessed_comma
Definition: eventids1.c:47
ID id_program
Definition: eventids1.c:79
ID id_begin
Definition: eventids1.c:21
ID id_args_new
Definition: eventids1.c:13
ID id_case
Definition: eventids1.c:29
ID id_method_add_arg
Definition: eventids1.c:60
ID id_sclass
Definition: eventids1.c:94
ID id_parse_error
Definition: eventids1.c:78
ID id_else
Definition: eventids1.c:44
ID id_lambda
Definition: eventids1.c:57
ID id_do_block
Definition: eventids1.c:40
ID id_rest_param
Definition: eventids1.c:90
ID id_regexp_new
Definition: eventids1.c:87
ID id_if_mod
Definition: eventids1.c:54
ID id_for
Definition: eventids1.c:50
ID id_bodystmt
Definition: eventids1.c:25
ID id_ensure
Definition: eventids1.c:46
ID id_regexp_literal
Definition: eventids1.c:86
ID id_kwrest_param
Definition: eventids1.c:56
ID id_unless_mod
Definition: eventids1.c:113
ID id_symbols_add
Definition: eventids1.c:106
ID id_until
Definition: eventids1.c:114
ID id_ifop
Definition: eventids1.c:55
ID id_dot3
Definition: eventids1.c:42
ID id_command
Definition: eventids1.c:32
ID id_args_add
Definition: eventids1.c:10