Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

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