Ruby: ext/ripper/eventids1.c Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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