debase-ruby_core_source 0.10.12 → 0.10.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/addr2line.h +20 -0
  3. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/builtin.h +83 -0
  4. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ccan/build_assert/build_assert.h +40 -0
  5. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ccan/check_type/check_type.h +63 -0
  6. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ccan/container_of/container_of.h +142 -0
  7. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ccan/list/list.h +788 -0
  8. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ccan/str/str.h +16 -0
  9. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/constant.h +55 -0
  10. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/darray.h +198 -0
  11. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/debug_counter.h +467 -0
  12. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/dln.h +31 -0
  13. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/encindex.h +70 -0
  14. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/eval_intern.h +304 -0
  15. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/gc.h +142 -0
  16. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/hrtime.h +168 -0
  17. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/id.h +293 -0
  18. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/id_table.h +36 -0
  19. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/insns.inc +247 -0
  20. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/insns_info.inc +8978 -0
  21. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/array.h +113 -0
  22. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/bignum.h +246 -0
  23. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/bits.h +565 -0
  24. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/class.h +188 -0
  25. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compar.h +49 -0
  26. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compile.h +35 -0
  27. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/compilers.h +107 -0
  28. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/complex.h +29 -0
  29. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/cont.h +24 -0
  30. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/dir.h +16 -0
  31. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enc.h +19 -0
  32. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/encoding.h +30 -0
  33. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enum.h +18 -0
  34. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/enumerator.h +21 -0
  35. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/error.h +191 -0
  36. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/eval.h +32 -0
  37. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/file.h +38 -0
  38. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/fixnum.h +184 -0
  39. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/gc.h +175 -0
  40. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/hash.h +243 -0
  41. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/imemo.h +243 -0
  42. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/inits.h +50 -0
  43. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/io.h +38 -0
  44. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/load.h +18 -0
  45. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/loadpath.h +16 -0
  46. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/math.h +23 -0
  47. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/missing.h +18 -0
  48. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/numeric.h +271 -0
  49. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/object.h +83 -0
  50. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/parse.h +23 -0
  51. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/proc.h +32 -0
  52. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/process.h +137 -0
  53. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/random.h +16 -0
  54. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/range.h +40 -0
  55. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/rational.h +72 -0
  56. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/re.h +30 -0
  57. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/sanitizers.h +190 -0
  58. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/serial.h +23 -0
  59. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/signal.h +21 -0
  60. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/static_assert.h +16 -0
  61. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/string.h +141 -0
  62. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/struct.h +153 -0
  63. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/symbol.h +40 -0
  64. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/thread.h +53 -0
  65. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/time.h +34 -0
  66. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/transcode.h +20 -0
  67. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/util.h +27 -0
  68. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/variable.h +83 -0
  69. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/vm.h +132 -0
  70. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal/warnings.h +16 -0
  71. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/internal.h +109 -0
  72. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/iseq.h +320 -0
  73. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/known_errors.inc +791 -0
  74. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/method.h +245 -0
  75. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/mjit.h +231 -0
  76. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/mjit_compile.inc +8265 -0
  77. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/node.h +499 -0
  78. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/node_name.inc +210 -0
  79. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/opt_sc.inc +107 -0
  80. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/optinsn.inc +128 -0
  81. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/optunifs.inc +43 -0
  82. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/parse.h +214 -0
  83. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/probes_helper.h +44 -0
  84. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ractor_core.h +346 -0
  85. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/regenc.h +254 -0
  86. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/regint.h +942 -0
  87. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/regparse.h +370 -0
  88. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/revision.h +2 -0
  89. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ruby_assert.h +14 -0
  90. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/ruby_atomic.h +23 -0
  91. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/siphash.h +48 -0
  92. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/symbol.h +119 -0
  93. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/thread_pthread.h +115 -0
  94. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/thread_win32.h +61 -0
  95. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/timev.h +57 -0
  96. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/transcode_data.h +138 -0
  97. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/transient_heap.h +65 -0
  98. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/variable.h +21 -0
  99. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/version.h +88 -0
  100. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm.inc +5415 -0
  101. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_call_iseq_optimized.inc +244 -0
  102. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_callinfo.h +454 -0
  103. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_core.h +2103 -0
  104. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_debug.h +119 -0
  105. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_exec.h +197 -0
  106. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_insnhelper.h +265 -0
  107. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_opts.h +73 -0
  108. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vm_sync.h +137 -0
  109. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/vmtc.inc +241 -0
  110. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit.h +63 -0
  111. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_asm.h +392 -0
  112. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_codegen.h +19 -0
  113. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_core.h +302 -0
  114. data/lib/debase/ruby_core_source/ruby-3.1.0-preview1/yjit_iface.h +38 -0
  115. data/lib/debase/ruby_core_source/version.rb +1 -1
  116. metadata +116 -3
@@ -0,0 +1,499 @@
1
+ #ifndef RUBY_NODE_H
2
+ #define RUBY_NODE_H 1
3
+ /**********************************************************************
4
+
5
+ node.h -
6
+
7
+ $Author$
8
+ created at: Fri May 28 15:14:02 JST 1993
9
+
10
+ Copyright (C) 1993-2007 Yukihiro Matsumoto
11
+
12
+ **********************************************************************/
13
+
14
+ #if defined(__cplusplus)
15
+ extern "C" {
16
+ #if 0
17
+ } /* satisfy cc-mode */
18
+ #endif
19
+ #endif
20
+
21
+ enum node_type {
22
+ NODE_SCOPE,
23
+ NODE_BLOCK,
24
+ NODE_IF,
25
+ NODE_UNLESS,
26
+ NODE_CASE,
27
+ NODE_CASE2,
28
+ NODE_CASE3,
29
+ NODE_WHEN,
30
+ NODE_IN,
31
+ NODE_WHILE,
32
+ NODE_UNTIL,
33
+ NODE_ITER,
34
+ NODE_FOR,
35
+ NODE_FOR_MASGN,
36
+ NODE_BREAK,
37
+ NODE_NEXT,
38
+ NODE_REDO,
39
+ NODE_RETRY,
40
+ NODE_BEGIN,
41
+ NODE_RESCUE,
42
+ NODE_RESBODY,
43
+ NODE_ENSURE,
44
+ NODE_AND,
45
+ NODE_OR,
46
+ NODE_MASGN,
47
+ NODE_LASGN,
48
+ NODE_DASGN,
49
+ NODE_DASGN_CURR,
50
+ NODE_GASGN,
51
+ NODE_IASGN,
52
+ NODE_CDECL,
53
+ NODE_CVASGN,
54
+ NODE_OP_ASGN1,
55
+ NODE_OP_ASGN2,
56
+ NODE_OP_ASGN_AND,
57
+ NODE_OP_ASGN_OR,
58
+ NODE_OP_CDECL,
59
+ NODE_CALL,
60
+ NODE_OPCALL,
61
+ NODE_FCALL,
62
+ NODE_VCALL,
63
+ NODE_QCALL,
64
+ NODE_SUPER,
65
+ NODE_ZSUPER,
66
+ NODE_LIST,
67
+ NODE_ZLIST,
68
+ NODE_VALUES,
69
+ NODE_HASH,
70
+ NODE_RETURN,
71
+ NODE_YIELD,
72
+ NODE_LVAR,
73
+ NODE_DVAR,
74
+ NODE_GVAR,
75
+ NODE_IVAR,
76
+ NODE_CONST,
77
+ NODE_CVAR,
78
+ NODE_NTH_REF,
79
+ NODE_BACK_REF,
80
+ NODE_MATCH,
81
+ NODE_MATCH2,
82
+ NODE_MATCH3,
83
+ NODE_LIT,
84
+ NODE_STR,
85
+ NODE_DSTR,
86
+ NODE_XSTR,
87
+ NODE_DXSTR,
88
+ NODE_EVSTR,
89
+ NODE_DREGX,
90
+ NODE_ONCE,
91
+ NODE_ARGS,
92
+ NODE_ARGS_AUX,
93
+ NODE_OPT_ARG,
94
+ NODE_KW_ARG,
95
+ NODE_POSTARG,
96
+ NODE_ARGSCAT,
97
+ NODE_ARGSPUSH,
98
+ NODE_SPLAT,
99
+ NODE_BLOCK_PASS,
100
+ NODE_DEFN,
101
+ NODE_DEFS,
102
+ NODE_ALIAS,
103
+ NODE_VALIAS,
104
+ NODE_UNDEF,
105
+ NODE_CLASS,
106
+ NODE_MODULE,
107
+ NODE_SCLASS,
108
+ NODE_COLON2,
109
+ NODE_COLON3,
110
+ NODE_DOT2,
111
+ NODE_DOT3,
112
+ NODE_FLIP2,
113
+ NODE_FLIP3,
114
+ NODE_SELF,
115
+ NODE_NIL,
116
+ NODE_TRUE,
117
+ NODE_FALSE,
118
+ NODE_ERRINFO,
119
+ NODE_DEFINED,
120
+ NODE_POSTEXE,
121
+ NODE_DSYM,
122
+ NODE_ATTRASGN,
123
+ NODE_LAMBDA,
124
+ NODE_ARYPTN,
125
+ NODE_HSHPTN,
126
+ NODE_FNDPTN,
127
+ NODE_LAST
128
+ };
129
+
130
+ typedef struct rb_code_position_struct {
131
+ int lineno;
132
+ int column;
133
+ } rb_code_position_t;
134
+
135
+ typedef struct rb_code_location_struct {
136
+ rb_code_position_t beg_pos;
137
+ rb_code_position_t end_pos;
138
+ } rb_code_location_t;
139
+
140
+ static inline rb_code_location_t
141
+ code_loc_gen(const rb_code_location_t *loc1, const rb_code_location_t *loc2)
142
+ {
143
+ rb_code_location_t loc;
144
+ loc.beg_pos = loc1->beg_pos;
145
+ loc.end_pos = loc2->end_pos;
146
+ return loc;
147
+ }
148
+
149
+ typedef struct RNode {
150
+ VALUE flags;
151
+ union {
152
+ struct RNode *node;
153
+ ID id;
154
+ VALUE value;
155
+ ID *tbl;
156
+ } u1;
157
+ union {
158
+ struct RNode *node;
159
+ ID id;
160
+ long argc;
161
+ VALUE value;
162
+ } u2;
163
+ union {
164
+ struct RNode *node;
165
+ ID id;
166
+ long state;
167
+ struct rb_args_info *args;
168
+ struct rb_ary_pattern_info *apinfo;
169
+ struct rb_fnd_pattern_info *fpinfo;
170
+ VALUE value;
171
+ } u3;
172
+ rb_code_location_t nd_loc;
173
+ int node_id;
174
+ } NODE;
175
+
176
+ #define RNODE(obj) ((struct RNode *)(obj))
177
+
178
+ /* FL : 0..4: T_TYPES, 5: KEEP_WB, 6: PROMOTED, 7: FINALIZE, 8: UNUSED, 9: UNUSED, 10: EXIVAR, 11: FREEZE */
179
+ /* NODE_FL: 0..4: T_TYPES, 5: KEEP_WB, 6: PROMOTED, 7: NODE_FL_NEWLINE,
180
+ * 8..14: nd_type,
181
+ * 15..: nd_line
182
+ */
183
+ #define NODE_FL_NEWLINE (((VALUE)1)<<7)
184
+
185
+ #define NODE_TYPESHIFT 8
186
+ #define NODE_TYPEMASK (((VALUE)0x7f)<<NODE_TYPESHIFT)
187
+
188
+ #define nd_type(n) ((int) (((n)->flags & NODE_TYPEMASK)>>NODE_TYPESHIFT))
189
+ #define nd_set_type(n,t) \
190
+ rb_node_set_type(n, t)
191
+ #define nd_init_type(n,t) \
192
+ (n)->flags=(((n)->flags&~NODE_TYPEMASK)|((((unsigned long)(t))<<NODE_TYPESHIFT)&NODE_TYPEMASK))
193
+
194
+ #define NODE_LSHIFT (NODE_TYPESHIFT+7)
195
+ #define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
196
+ #define nd_line(n) (int)(((SIGNED_VALUE)(n)->flags)>>NODE_LSHIFT)
197
+ #define nd_set_line(n,l) \
198
+ (n)->flags=(((n)->flags&~((VALUE)(-1)<<NODE_LSHIFT))|((VALUE)((l)&NODE_LMASK)<<NODE_LSHIFT))
199
+
200
+ #define nd_first_column(n) ((int)((n)->nd_loc.beg_pos.column))
201
+ #define nd_set_first_column(n, v) ((n)->nd_loc.beg_pos.column = (v))
202
+ #define nd_first_lineno(n) ((int)((n)->nd_loc.beg_pos.lineno))
203
+ #define nd_set_first_lineno(n, v) ((n)->nd_loc.beg_pos.lineno = (v))
204
+ #define nd_first_loc(n) ((n)->nd_loc.beg_pos)
205
+ #define nd_set_first_loc(n, v) (nd_first_loc(n) = (v))
206
+
207
+ #define nd_last_column(n) ((int)((n)->nd_loc.end_pos.column))
208
+ #define nd_set_last_column(n, v) ((n)->nd_loc.end_pos.column = (v))
209
+ #define nd_last_lineno(n) ((int)((n)->nd_loc.end_pos.lineno))
210
+ #define nd_set_last_lineno(n, v) ((n)->nd_loc.end_pos.lineno = (v))
211
+ #define nd_last_loc(n) ((n)->nd_loc.end_pos)
212
+ #define nd_set_last_loc(n, v) (nd_last_loc(n) = (v))
213
+ #define nd_node_id(n) ((n)->node_id)
214
+ #define nd_set_node_id(n,id) ((n)->node_id = (id))
215
+
216
+ #define nd_head u1.node
217
+ #define nd_alen u2.argc
218
+ #define nd_next u3.node
219
+
220
+ #define nd_cond u1.node
221
+ #define nd_body u2.node
222
+ #define nd_else u3.node
223
+
224
+ #define nd_resq u2.node
225
+ #define nd_ensr u3.node
226
+
227
+ #define nd_1st u1.node
228
+ #define nd_2nd u2.node
229
+
230
+ #define nd_stts u1.node
231
+
232
+ #define nd_entry u3.id
233
+ #define nd_vid u1.id
234
+ #define nd_cflag u2.id
235
+ #define nd_cval u3.value
236
+
237
+ #define nd_oid u1.id
238
+ #define nd_tbl u1.tbl
239
+
240
+ #define nd_var u1.node
241
+ #define nd_iter u3.node
242
+
243
+ #define nd_value u2.node
244
+ #define nd_aid u3.id
245
+
246
+ #define nd_lit u1.value
247
+
248
+ #define nd_rest u1.id
249
+ #define nd_opt u1.node
250
+ #define nd_pid u1.id
251
+ #define nd_plen u2.argc
252
+
253
+ #define nd_recv u1.node
254
+ #define nd_mid u2.id
255
+ #define nd_args u3.node
256
+ #define nd_ainfo u3.args
257
+
258
+ #define nd_defn u3.node
259
+
260
+ #define nd_cpath u1.node
261
+ #define nd_super u3.node
262
+
263
+ #define nd_beg u1.node
264
+ #define nd_end u2.node
265
+ #define nd_state u3.state
266
+ #define nd_rval u2.value
267
+
268
+ #define nd_nth u2.argc
269
+
270
+ #define nd_tag u1.id
271
+
272
+ #define nd_alias u1.id
273
+ #define nd_orig u2.id
274
+ #define nd_undef u2.node
275
+
276
+ #define nd_brace u2.argc
277
+
278
+ #define nd_pconst u1.node
279
+ #define nd_pkwargs u2.node
280
+ #define nd_pkwrestarg u3.node
281
+
282
+ #define nd_apinfo u3.apinfo
283
+
284
+ #define nd_fpinfo u3.fpinfo
285
+
286
+ #define NEW_NODE(t,a0,a1,a2,loc) rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2),loc)
287
+ #define NEW_NODE_WITH_LOCALS(t,a1,a2,loc) node_newnode_with_locals(p, (t),(VALUE)(a1),(VALUE)(a2),loc)
288
+
289
+ #define NEW_DEFN(i,a,d,loc) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d,loc),loc)
290
+ #define NEW_DEFS(r,i,a,d,loc) NEW_NODE(NODE_DEFS,r,i,NEW_SCOPE(a,d,loc),loc)
291
+ #define NEW_SCOPE(a,b,loc) NEW_NODE_WITH_LOCALS(NODE_SCOPE,b,a,loc)
292
+ #define NEW_BLOCK(a,loc) NEW_NODE(NODE_BLOCK,a,0,0,loc)
293
+ #define NEW_IF(c,t,e,loc) NEW_NODE(NODE_IF,c,t,e,loc)
294
+ #define NEW_UNLESS(c,t,e,loc) NEW_NODE(NODE_UNLESS,c,t,e,loc)
295
+ #define NEW_CASE(h,b,loc) NEW_NODE(NODE_CASE,h,b,0,loc)
296
+ #define NEW_CASE2(b,loc) NEW_NODE(NODE_CASE2,0,b,0,loc)
297
+ #define NEW_CASE3(h,b,loc) NEW_NODE(NODE_CASE3,h,b,0,loc)
298
+ #define NEW_WHEN(c,t,e,loc) NEW_NODE(NODE_WHEN,c,t,e,loc)
299
+ #define NEW_IN(c,t,e,loc) NEW_NODE(NODE_IN,c,t,e,loc)
300
+ #define NEW_WHILE(c,b,n,loc) NEW_NODE(NODE_WHILE,c,b,n,loc)
301
+ #define NEW_UNTIL(c,b,n,loc) NEW_NODE(NODE_UNTIL,c,b,n,loc)
302
+ #define NEW_FOR(i,b,loc) NEW_NODE(NODE_FOR,0,b,i,loc)
303
+ #define NEW_FOR_MASGN(v,loc) NEW_NODE(NODE_FOR_MASGN,v,0,0,loc)
304
+ #define NEW_ITER(a,b,loc) NEW_NODE(NODE_ITER,0,NEW_SCOPE(a,b,loc),0,loc)
305
+ #define NEW_LAMBDA(a,b,loc) NEW_NODE(NODE_LAMBDA,0,NEW_SCOPE(a,b,loc),0,loc)
306
+ #define NEW_BREAK(s,loc) NEW_NODE(NODE_BREAK,s,0,0,loc)
307
+ #define NEW_NEXT(s,loc) NEW_NODE(NODE_NEXT,s,0,0,loc)
308
+ #define NEW_REDO(loc) NEW_NODE(NODE_REDO,0,0,0,loc)
309
+ #define NEW_RETRY(loc) NEW_NODE(NODE_RETRY,0,0,0,loc)
310
+ #define NEW_BEGIN(b,loc) NEW_NODE(NODE_BEGIN,0,b,0,loc)
311
+ #define NEW_RESCUE(b,res,e,loc) NEW_NODE(NODE_RESCUE,b,res,e,loc)
312
+ #define NEW_RESBODY(a,ex,n,loc) NEW_NODE(NODE_RESBODY,n,ex,a,loc)
313
+ #define NEW_ENSURE(b,en,loc) NEW_NODE(NODE_ENSURE,b,0,en,loc)
314
+ #define NEW_RETURN(s,loc) NEW_NODE(NODE_RETURN,s,0,0,loc)
315
+ #define NEW_YIELD(a,loc) NEW_NODE(NODE_YIELD,a,0,0,loc)
316
+ #define NEW_LIST(a,loc) NEW_NODE(NODE_LIST,a,1,0,loc)
317
+ #define NEW_ZLIST(loc) NEW_NODE(NODE_ZLIST,0,0,0,loc)
318
+ #define NEW_HASH(a,loc) NEW_NODE(NODE_HASH,a,0,0,loc)
319
+ #define NEW_MASGN(l,r,loc) NEW_NODE(NODE_MASGN,l,0,r,loc)
320
+ #define NEW_GASGN(v,val,loc) NEW_NODE(NODE_GASGN,v,val,v,loc)
321
+ #define NEW_LASGN(v,val,loc) NEW_NODE(NODE_LASGN,v,val,0,loc)
322
+ #define NEW_DASGN(v,val,loc) NEW_NODE(NODE_DASGN,v,val,0,loc)
323
+ #define NEW_DASGN_CURR(v,val,loc) NEW_NODE(NODE_DASGN_CURR,v,val,0,loc)
324
+ #define NEW_IASGN(v,val,loc) NEW_NODE(NODE_IASGN,v,val,0,loc)
325
+ #define NEW_CDECL(v,val,path,loc) NEW_NODE(NODE_CDECL,v,val,path,loc)
326
+ #define NEW_CVASGN(v,val,loc) NEW_NODE(NODE_CVASGN,v,val,0,loc)
327
+ #define NEW_OP_ASGN1(p,id,a,loc) NEW_NODE(NODE_OP_ASGN1,p,id,a,loc)
328
+ #define NEW_OP_ASGN2(r,t,i,o,val,loc) NEW_NODE(NODE_OP_ASGN2,r,val,NEW_OP_ASGN22(i,o,t,loc),loc)
329
+ #define NEW_OP_ASGN22(i,o,t,loc) NEW_NODE(NODE_OP_ASGN2,i,o,t,loc)
330
+ #define NEW_OP_ASGN_OR(i,val,loc) NEW_NODE(NODE_OP_ASGN_OR,i,val,0,loc)
331
+ #define NEW_OP_ASGN_AND(i,val,loc) NEW_NODE(NODE_OP_ASGN_AND,i,val,0,loc)
332
+ #define NEW_OP_CDECL(v,op,val,loc) NEW_NODE(NODE_OP_CDECL,v,val,op,loc)
333
+ #define NEW_GVAR(v,loc) NEW_NODE(NODE_GVAR,v,0,v,loc)
334
+ #define NEW_LVAR(v,loc) NEW_NODE(NODE_LVAR,v,0,0,loc)
335
+ #define NEW_DVAR(v,loc) NEW_NODE(NODE_DVAR,v,0,0,loc)
336
+ #define NEW_IVAR(v,loc) NEW_NODE(NODE_IVAR,v,0,0,loc)
337
+ #define NEW_CONST(v,loc) NEW_NODE(NODE_CONST,v,0,0,loc)
338
+ #define NEW_CVAR(v,loc) NEW_NODE(NODE_CVAR,v,0,0,loc)
339
+ #define NEW_NTH_REF(n,loc) NEW_NODE(NODE_NTH_REF,0,n,0,loc)
340
+ #define NEW_BACK_REF(n,loc) NEW_NODE(NODE_BACK_REF,0,n,0,loc)
341
+ #define NEW_MATCH(c,loc) NEW_NODE(NODE_MATCH,c,0,0,loc)
342
+ #define NEW_MATCH2(n1,n2,loc) NEW_NODE(NODE_MATCH2,n1,n2,0,loc)
343
+ #define NEW_MATCH3(r,n2,loc) NEW_NODE(NODE_MATCH3,r,n2,0,loc)
344
+ #define NEW_LIT(l,loc) NEW_NODE(NODE_LIT,l,0,0,loc)
345
+ #define NEW_STR(s,loc) NEW_NODE(NODE_STR,s,0,0,loc)
346
+ #define NEW_DSTR(s,loc) NEW_NODE(NODE_DSTR,s,1,0,loc)
347
+ #define NEW_XSTR(s,loc) NEW_NODE(NODE_XSTR,s,0,0,loc)
348
+ #define NEW_DXSTR(s,loc) NEW_NODE(NODE_DXSTR,s,0,0,loc)
349
+ #define NEW_DSYM(s,loc) NEW_NODE(NODE_DSYM,s,0,0,loc)
350
+ #define NEW_EVSTR(n,loc) NEW_NODE(NODE_EVSTR,0,(n),0,loc)
351
+ #define NEW_CALL(r,m,a,loc) NEW_NODE(NODE_CALL,r,m,a,loc)
352
+ #define NEW_OPCALL(r,m,a,loc) NEW_NODE(NODE_OPCALL,r,m,a,loc)
353
+ #define NEW_FCALL(m,a,loc) NEW_NODE(NODE_FCALL,0,m,a,loc)
354
+ #define NEW_VCALL(m,loc) NEW_NODE(NODE_VCALL,0,m,0,loc)
355
+ #define NEW_SUPER(a,loc) NEW_NODE(NODE_SUPER,0,0,a,loc)
356
+ #define NEW_ZSUPER(loc) NEW_NODE(NODE_ZSUPER,0,0,0,loc)
357
+ #define NEW_ARGS_AUX(r,b,loc) NEW_NODE(NODE_ARGS_AUX,r,b,0,loc)
358
+ #define NEW_OPT_ARG(i,v,loc) NEW_NODE(NODE_OPT_ARG,i,v,0,loc)
359
+ #define NEW_KW_ARG(i,v,loc) NEW_NODE(NODE_KW_ARG,i,v,0,loc)
360
+ #define NEW_POSTARG(i,v,loc) NEW_NODE(NODE_POSTARG,i,v,0,loc)
361
+ #define NEW_ARGSCAT(a,b,loc) NEW_NODE(NODE_ARGSCAT,a,b,0,loc)
362
+ #define NEW_ARGSPUSH(a,b,loc) NEW_NODE(NODE_ARGSPUSH,a,b,0,loc)
363
+ #define NEW_SPLAT(a,loc) NEW_NODE(NODE_SPLAT,a,0,0,loc)
364
+ #define NEW_BLOCK_PASS(b,loc) NEW_NODE(NODE_BLOCK_PASS,0,b,0,loc)
365
+ #define NEW_ALIAS(n,o,loc) NEW_NODE(NODE_ALIAS,n,o,0,loc)
366
+ #define NEW_VALIAS(n,o,loc) NEW_NODE(NODE_VALIAS,n,o,0,loc)
367
+ #define NEW_UNDEF(i,loc) NEW_NODE(NODE_UNDEF,0,i,0,loc)
368
+ #define NEW_CLASS(n,b,s,loc) NEW_NODE(NODE_CLASS,n,NEW_SCOPE(0,b,loc),(s),loc)
369
+ #define NEW_SCLASS(r,b,loc) NEW_NODE(NODE_SCLASS,r,NEW_SCOPE(0,b,loc),0,loc)
370
+ #define NEW_MODULE(n,b,loc) NEW_NODE(NODE_MODULE,n,NEW_SCOPE(0,b,loc),0,loc)
371
+ #define NEW_COLON2(c,i,loc) NEW_NODE(NODE_COLON2,c,i,0,loc)
372
+ #define NEW_COLON3(i,loc) NEW_NODE(NODE_COLON3,0,i,0,loc)
373
+ #define NEW_DOT2(b,e,loc) NEW_NODE(NODE_DOT2,b,e,0,loc)
374
+ #define NEW_DOT3(b,e,loc) NEW_NODE(NODE_DOT3,b,e,0,loc)
375
+ #define NEW_SELF(loc) NEW_NODE(NODE_SELF,0,0,1,loc)
376
+ #define NEW_NIL(loc) NEW_NODE(NODE_NIL,0,0,0,loc)
377
+ #define NEW_TRUE(loc) NEW_NODE(NODE_TRUE,0,0,0,loc)
378
+ #define NEW_FALSE(loc) NEW_NODE(NODE_FALSE,0,0,0,loc)
379
+ #define NEW_ERRINFO(loc) NEW_NODE(NODE_ERRINFO,0,0,0,loc)
380
+ #define NEW_DEFINED(e,loc) NEW_NODE(NODE_DEFINED,e,0,0,loc)
381
+ #define NEW_PREEXE(b,loc) NEW_SCOPE(b,loc)
382
+ #define NEW_POSTEXE(b,loc) NEW_NODE(NODE_POSTEXE,0,b,0,loc)
383
+ #define NEW_ATTRASGN(r,m,a,loc) NEW_NODE(NODE_ATTRASGN,r,m,a,loc)
384
+
385
+ #define NODE_SPECIAL_REQUIRED_KEYWORD ((NODE *)-1)
386
+ #define NODE_REQUIRED_KEYWORD_P(node) ((node)->nd_value == NODE_SPECIAL_REQUIRED_KEYWORD)
387
+ #define NODE_SPECIAL_NO_NAME_REST ((NODE *)-1)
388
+ #define NODE_NAMED_REST_P(node) ((node) != NODE_SPECIAL_NO_NAME_REST)
389
+ #define NODE_SPECIAL_EXCESSIVE_COMMA ((ID)1)
390
+ #define NODE_SPECIAL_NO_REST_KEYWORD ((NODE *)-1)
391
+
392
+ VALUE rb_node_case_when_optimizable_literal(const NODE *const node);
393
+
394
+ RUBY_SYMBOL_EXPORT_BEGIN
395
+
396
+ typedef struct node_buffer_struct node_buffer_t;
397
+ /* T_IMEMO/ast */
398
+ typedef struct rb_ast_body_struct {
399
+ const NODE *root;
400
+ VALUE compile_option;
401
+ VALUE script_lines;
402
+ // script_lines is either:
403
+ // - a Fixnum that represents the line count of the original source, or
404
+ // - an Array that contains the lines of the original source
405
+ } rb_ast_body_t;
406
+ typedef struct rb_ast_struct {
407
+ VALUE flags;
408
+ node_buffer_t *node_buffer;
409
+ rb_ast_body_t body;
410
+ } rb_ast_t;
411
+ rb_ast_t *rb_ast_new(void);
412
+ void rb_ast_mark(rb_ast_t*);
413
+ void rb_ast_update_references(rb_ast_t*);
414
+ void rb_ast_add_local_table(rb_ast_t*, ID *buf);
415
+ void rb_ast_dispose(rb_ast_t*);
416
+ void rb_ast_free(rb_ast_t*);
417
+ size_t rb_ast_memsize(const rb_ast_t*);
418
+ void rb_ast_add_mark_object(rb_ast_t*, VALUE);
419
+ NODE *rb_ast_newnode(rb_ast_t*, enum node_type type);
420
+ void rb_ast_delete_node(rb_ast_t*, NODE *n);
421
+
422
+ VALUE rb_parser_new(void);
423
+ VALUE rb_parser_end_seen_p(VALUE);
424
+ VALUE rb_parser_encoding(VALUE);
425
+ VALUE rb_parser_set_yydebug(VALUE, VALUE);
426
+ VALUE rb_parser_dump_tree(const NODE *node, int comment);
427
+ void rb_parser_set_options(VALUE, int, int, int, int);
428
+
429
+ rb_ast_t *rb_parser_compile_string(VALUE, const char*, VALUE, int);
430
+ rb_ast_t *rb_parser_compile_string_path(VALUE vparser, VALUE fname, VALUE src, int line);
431
+ rb_ast_t *rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE input, int line);
432
+ rb_ast_t *rb_parser_compile_generic(VALUE vparser, VALUE (*lex_gets)(VALUE, int), VALUE fname, VALUE input, int line);
433
+
434
+ void rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2);
435
+ const char *ruby_node_name(int node);
436
+
437
+ const struct kwtable *rb_reserved_word(const char *, unsigned int);
438
+
439
+ struct rb_args_info {
440
+ NODE *pre_init;
441
+ NODE *post_init;
442
+
443
+ int pre_args_num; /* count of mandatory pre-arguments */
444
+ int post_args_num; /* count of mandatory post-arguments */
445
+
446
+ ID first_post_arg;
447
+
448
+ ID rest_arg;
449
+ ID block_arg;
450
+
451
+ NODE *kw_args;
452
+ NODE *kw_rest_arg;
453
+
454
+ NODE *opt_args;
455
+ unsigned int no_kwarg: 1;
456
+ unsigned int ruby2_keywords: 1;
457
+
458
+ VALUE imemo;
459
+ };
460
+
461
+ struct rb_ary_pattern_info {
462
+ NODE *pre_args;
463
+ NODE *rest_arg;
464
+ NODE *post_args;
465
+ };
466
+
467
+ struct rb_fnd_pattern_info {
468
+ NODE *pre_rest_arg;
469
+ NODE *args;
470
+ NODE *post_rest_arg;
471
+ };
472
+
473
+ struct parser_params;
474
+ void *rb_parser_malloc(struct parser_params *, size_t);
475
+ void *rb_parser_realloc(struct parser_params *, void *, size_t);
476
+ void *rb_parser_calloc(struct parser_params *, size_t, size_t);
477
+ void rb_parser_free(struct parser_params *, void *);
478
+ PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
479
+ void rb_ast_node_type_change(NODE *n, enum node_type type);
480
+
481
+ RUBY_SYMBOL_EXPORT_END
482
+
483
+ static inline VALUE
484
+ rb_node_set_type(NODE *n, enum node_type t)
485
+ {
486
+ #if RUBY_DEBUG
487
+ rb_ast_node_type_change(n, t);
488
+ #endif
489
+ return nd_init_type(n, t);
490
+ }
491
+
492
+ #if defined(__cplusplus)
493
+ #if 0
494
+ { /* satisfy cc-mode */
495
+ #endif
496
+ } /* extern "C" { */
497
+ #endif
498
+
499
+ #endif /* RUBY_NODE_H */
@@ -0,0 +1,210 @@
1
+ case NODE_SCOPE:
2
+ return "NODE_SCOPE";
3
+ case NODE_BLOCK:
4
+ return "NODE_BLOCK";
5
+ case NODE_IF:
6
+ return "NODE_IF";
7
+ case NODE_UNLESS:
8
+ return "NODE_UNLESS";
9
+ case NODE_CASE:
10
+ return "NODE_CASE";
11
+ case NODE_CASE2:
12
+ return "NODE_CASE2";
13
+ case NODE_CASE3:
14
+ return "NODE_CASE3";
15
+ case NODE_WHEN:
16
+ return "NODE_WHEN";
17
+ case NODE_IN:
18
+ return "NODE_IN";
19
+ case NODE_WHILE:
20
+ return "NODE_WHILE";
21
+ case NODE_UNTIL:
22
+ return "NODE_UNTIL";
23
+ case NODE_ITER:
24
+ return "NODE_ITER";
25
+ case NODE_FOR:
26
+ return "NODE_FOR";
27
+ case NODE_FOR_MASGN:
28
+ return "NODE_FOR_MASGN";
29
+ case NODE_BREAK:
30
+ return "NODE_BREAK";
31
+ case NODE_NEXT:
32
+ return "NODE_NEXT";
33
+ case NODE_REDO:
34
+ return "NODE_REDO";
35
+ case NODE_RETRY:
36
+ return "NODE_RETRY";
37
+ case NODE_BEGIN:
38
+ return "NODE_BEGIN";
39
+ case NODE_RESCUE:
40
+ return "NODE_RESCUE";
41
+ case NODE_RESBODY:
42
+ return "NODE_RESBODY";
43
+ case NODE_ENSURE:
44
+ return "NODE_ENSURE";
45
+ case NODE_AND:
46
+ return "NODE_AND";
47
+ case NODE_OR:
48
+ return "NODE_OR";
49
+ case NODE_MASGN:
50
+ return "NODE_MASGN";
51
+ case NODE_LASGN:
52
+ return "NODE_LASGN";
53
+ case NODE_DASGN:
54
+ return "NODE_DASGN";
55
+ case NODE_DASGN_CURR:
56
+ return "NODE_DASGN_CURR";
57
+ case NODE_GASGN:
58
+ return "NODE_GASGN";
59
+ case NODE_IASGN:
60
+ return "NODE_IASGN";
61
+ case NODE_CDECL:
62
+ return "NODE_CDECL";
63
+ case NODE_CVASGN:
64
+ return "NODE_CVASGN";
65
+ case NODE_OP_ASGN1:
66
+ return "NODE_OP_ASGN1";
67
+ case NODE_OP_ASGN2:
68
+ return "NODE_OP_ASGN2";
69
+ case NODE_OP_ASGN_AND:
70
+ return "NODE_OP_ASGN_AND";
71
+ case NODE_OP_ASGN_OR:
72
+ return "NODE_OP_ASGN_OR";
73
+ case NODE_OP_CDECL:
74
+ return "NODE_OP_CDECL";
75
+ case NODE_CALL:
76
+ return "NODE_CALL";
77
+ case NODE_OPCALL:
78
+ return "NODE_OPCALL";
79
+ case NODE_FCALL:
80
+ return "NODE_FCALL";
81
+ case NODE_VCALL:
82
+ return "NODE_VCALL";
83
+ case NODE_QCALL:
84
+ return "NODE_QCALL";
85
+ case NODE_SUPER:
86
+ return "NODE_SUPER";
87
+ case NODE_ZSUPER:
88
+ return "NODE_ZSUPER";
89
+ case NODE_LIST:
90
+ return "NODE_LIST";
91
+ case NODE_ZLIST:
92
+ return "NODE_ZLIST";
93
+ case NODE_VALUES:
94
+ return "NODE_VALUES";
95
+ case NODE_HASH:
96
+ return "NODE_HASH";
97
+ case NODE_RETURN:
98
+ return "NODE_RETURN";
99
+ case NODE_YIELD:
100
+ return "NODE_YIELD";
101
+ case NODE_LVAR:
102
+ return "NODE_LVAR";
103
+ case NODE_DVAR:
104
+ return "NODE_DVAR";
105
+ case NODE_GVAR:
106
+ return "NODE_GVAR";
107
+ case NODE_IVAR:
108
+ return "NODE_IVAR";
109
+ case NODE_CONST:
110
+ return "NODE_CONST";
111
+ case NODE_CVAR:
112
+ return "NODE_CVAR";
113
+ case NODE_NTH_REF:
114
+ return "NODE_NTH_REF";
115
+ case NODE_BACK_REF:
116
+ return "NODE_BACK_REF";
117
+ case NODE_MATCH:
118
+ return "NODE_MATCH";
119
+ case NODE_MATCH2:
120
+ return "NODE_MATCH2";
121
+ case NODE_MATCH3:
122
+ return "NODE_MATCH3";
123
+ case NODE_LIT:
124
+ return "NODE_LIT";
125
+ case NODE_STR:
126
+ return "NODE_STR";
127
+ case NODE_DSTR:
128
+ return "NODE_DSTR";
129
+ case NODE_XSTR:
130
+ return "NODE_XSTR";
131
+ case NODE_DXSTR:
132
+ return "NODE_DXSTR";
133
+ case NODE_EVSTR:
134
+ return "NODE_EVSTR";
135
+ case NODE_DREGX:
136
+ return "NODE_DREGX";
137
+ case NODE_ONCE:
138
+ return "NODE_ONCE";
139
+ case NODE_ARGS:
140
+ return "NODE_ARGS";
141
+ case NODE_ARGS_AUX:
142
+ return "NODE_ARGS_AUX";
143
+ case NODE_OPT_ARG:
144
+ return "NODE_OPT_ARG";
145
+ case NODE_KW_ARG:
146
+ return "NODE_KW_ARG";
147
+ case NODE_POSTARG:
148
+ return "NODE_POSTARG";
149
+ case NODE_ARGSCAT:
150
+ return "NODE_ARGSCAT";
151
+ case NODE_ARGSPUSH:
152
+ return "NODE_ARGSPUSH";
153
+ case NODE_SPLAT:
154
+ return "NODE_SPLAT";
155
+ case NODE_BLOCK_PASS:
156
+ return "NODE_BLOCK_PASS";
157
+ case NODE_DEFN:
158
+ return "NODE_DEFN";
159
+ case NODE_DEFS:
160
+ return "NODE_DEFS";
161
+ case NODE_ALIAS:
162
+ return "NODE_ALIAS";
163
+ case NODE_VALIAS:
164
+ return "NODE_VALIAS";
165
+ case NODE_UNDEF:
166
+ return "NODE_UNDEF";
167
+ case NODE_CLASS:
168
+ return "NODE_CLASS";
169
+ case NODE_MODULE:
170
+ return "NODE_MODULE";
171
+ case NODE_SCLASS:
172
+ return "NODE_SCLASS";
173
+ case NODE_COLON2:
174
+ return "NODE_COLON2";
175
+ case NODE_COLON3:
176
+ return "NODE_COLON3";
177
+ case NODE_DOT2:
178
+ return "NODE_DOT2";
179
+ case NODE_DOT3:
180
+ return "NODE_DOT3";
181
+ case NODE_FLIP2:
182
+ return "NODE_FLIP2";
183
+ case NODE_FLIP3:
184
+ return "NODE_FLIP3";
185
+ case NODE_SELF:
186
+ return "NODE_SELF";
187
+ case NODE_NIL:
188
+ return "NODE_NIL";
189
+ case NODE_TRUE:
190
+ return "NODE_TRUE";
191
+ case NODE_FALSE:
192
+ return "NODE_FALSE";
193
+ case NODE_ERRINFO:
194
+ return "NODE_ERRINFO";
195
+ case NODE_DEFINED:
196
+ return "NODE_DEFINED";
197
+ case NODE_POSTEXE:
198
+ return "NODE_POSTEXE";
199
+ case NODE_DSYM:
200
+ return "NODE_DSYM";
201
+ case NODE_ATTRASGN:
202
+ return "NODE_ATTRASGN";
203
+ case NODE_LAMBDA:
204
+ return "NODE_LAMBDA";
205
+ case NODE_ARYPTN:
206
+ return "NODE_ARYPTN";
207
+ case NODE_HSHPTN:
208
+ return "NODE_HSHPTN";
209
+ case NODE_FNDPTN:
210
+ return "NODE_FNDPTN";