kanayago 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +15 -0
  3. data/.rubocop_todo.yml +23 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +79 -0
  6. data/Rakefile +182 -0
  7. data/ext/kanayago/ccan/check_type/check_type.h +63 -0
  8. data/ext/kanayago/ccan/container_of/container_of.h +142 -0
  9. data/ext/kanayago/ccan/list/list.h +791 -0
  10. data/ext/kanayago/ccan/str/str.h +17 -0
  11. data/ext/kanayago/constant.h +53 -0
  12. data/ext/kanayago/extconf.rb +21 -0
  13. data/ext/kanayago/id.h +347 -0
  14. data/ext/kanayago/id_table.h +39 -0
  15. data/ext/kanayago/internal/array.h +151 -0
  16. data/ext/kanayago/internal/basic_operators.h +64 -0
  17. data/ext/kanayago/internal/bignum.h +244 -0
  18. data/ext/kanayago/internal/bits.h +568 -0
  19. data/ext/kanayago/internal/compile.h +34 -0
  20. data/ext/kanayago/internal/compilers.h +107 -0
  21. data/ext/kanayago/internal/complex.h +29 -0
  22. data/ext/kanayago/internal/encoding.h +36 -0
  23. data/ext/kanayago/internal/error.h +218 -0
  24. data/ext/kanayago/internal/fixnum.h +184 -0
  25. data/ext/kanayago/internal/gc.h +322 -0
  26. data/ext/kanayago/internal/hash.h +191 -0
  27. data/ext/kanayago/internal/imemo.h +261 -0
  28. data/ext/kanayago/internal/io.h +140 -0
  29. data/ext/kanayago/internal/numeric.h +274 -0
  30. data/ext/kanayago/internal/parse.h +117 -0
  31. data/ext/kanayago/internal/rational.h +71 -0
  32. data/ext/kanayago/internal/re.h +28 -0
  33. data/ext/kanayago/internal/ruby_parser.h +125 -0
  34. data/ext/kanayago/internal/sanitizers.h +297 -0
  35. data/ext/kanayago/internal/serial.h +23 -0
  36. data/ext/kanayago/internal/static_assert.h +16 -0
  37. data/ext/kanayago/internal/string.h +186 -0
  38. data/ext/kanayago/internal/symbol.h +45 -0
  39. data/ext/kanayago/internal/thread.h +79 -0
  40. data/ext/kanayago/internal/variable.h +72 -0
  41. data/ext/kanayago/internal/vm.h +137 -0
  42. data/ext/kanayago/internal/warnings.h +16 -0
  43. data/ext/kanayago/internal.h +108 -0
  44. data/ext/kanayago/kanayago.c +420 -0
  45. data/ext/kanayago/kanayago.h +21 -0
  46. data/ext/kanayago/lex.c +302 -0
  47. data/ext/kanayago/method.h +255 -0
  48. data/ext/kanayago/node.c +440 -0
  49. data/ext/kanayago/node.h +111 -0
  50. data/ext/kanayago/node_name.inc +224 -0
  51. data/ext/kanayago/parse.c +26931 -0
  52. data/ext/kanayago/parse.h +244 -0
  53. data/ext/kanayago/parse.tmp.y +16145 -0
  54. data/ext/kanayago/parser_bits.h +564 -0
  55. data/ext/kanayago/parser_node.h +32 -0
  56. data/ext/kanayago/parser_st.c +164 -0
  57. data/ext/kanayago/parser_st.h +162 -0
  58. data/ext/kanayago/parser_value.h +106 -0
  59. data/ext/kanayago/probes.h +4 -0
  60. data/ext/kanayago/ruby_assert.h +14 -0
  61. data/ext/kanayago/ruby_atomic.h +23 -0
  62. data/ext/kanayago/ruby_parser.c +1165 -0
  63. data/ext/kanayago/rubyparser.h +1391 -0
  64. data/ext/kanayago/shape.h +234 -0
  65. data/ext/kanayago/st.c +2339 -0
  66. data/ext/kanayago/symbol.h +123 -0
  67. data/ext/kanayago/thread_pthread.h +168 -0
  68. data/ext/kanayago/universal_parser.c +230 -0
  69. data/ext/kanayago/vm_core.h +2215 -0
  70. data/ext/kanayago/vm_opts.h +67 -0
  71. data/lib/kanayago/version.rb +5 -0
  72. data/lib/kanayago.rb +11 -0
  73. data/sig/kanayago.rbs +4 -0
  74. metadata +116 -0
@@ -0,0 +1,224 @@
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_GASGN:
56
+ return "NODE_GASGN";
57
+ case NODE_IASGN:
58
+ return "NODE_IASGN";
59
+ case NODE_CDECL:
60
+ return "NODE_CDECL";
61
+ case NODE_CVASGN:
62
+ return "NODE_CVASGN";
63
+ case NODE_OP_ASGN1:
64
+ return "NODE_OP_ASGN1";
65
+ case NODE_OP_ASGN2:
66
+ return "NODE_OP_ASGN2";
67
+ case NODE_OP_ASGN_AND:
68
+ return "NODE_OP_ASGN_AND";
69
+ case NODE_OP_ASGN_OR:
70
+ return "NODE_OP_ASGN_OR";
71
+ case NODE_OP_CDECL:
72
+ return "NODE_OP_CDECL";
73
+ case NODE_CALL:
74
+ return "NODE_CALL";
75
+ case NODE_OPCALL:
76
+ return "NODE_OPCALL";
77
+ case NODE_FCALL:
78
+ return "NODE_FCALL";
79
+ case NODE_VCALL:
80
+ return "NODE_VCALL";
81
+ case NODE_QCALL:
82
+ return "NODE_QCALL";
83
+ case NODE_SUPER:
84
+ return "NODE_SUPER";
85
+ case NODE_ZSUPER:
86
+ return "NODE_ZSUPER";
87
+ case NODE_LIST:
88
+ return "NODE_LIST";
89
+ case NODE_ZLIST:
90
+ return "NODE_ZLIST";
91
+ case NODE_HASH:
92
+ return "NODE_HASH";
93
+ case NODE_RETURN:
94
+ return "NODE_RETURN";
95
+ case NODE_YIELD:
96
+ return "NODE_YIELD";
97
+ case NODE_LVAR:
98
+ return "NODE_LVAR";
99
+ case NODE_DVAR:
100
+ return "NODE_DVAR";
101
+ case NODE_GVAR:
102
+ return "NODE_GVAR";
103
+ case NODE_IVAR:
104
+ return "NODE_IVAR";
105
+ case NODE_CONST:
106
+ return "NODE_CONST";
107
+ case NODE_CVAR:
108
+ return "NODE_CVAR";
109
+ case NODE_NTH_REF:
110
+ return "NODE_NTH_REF";
111
+ case NODE_BACK_REF:
112
+ return "NODE_BACK_REF";
113
+ case NODE_MATCH:
114
+ return "NODE_MATCH";
115
+ case NODE_MATCH2:
116
+ return "NODE_MATCH2";
117
+ case NODE_MATCH3:
118
+ return "NODE_MATCH3";
119
+ case NODE_INTEGER:
120
+ return "NODE_INTEGER";
121
+ case NODE_FLOAT:
122
+ return "NODE_FLOAT";
123
+ case NODE_RATIONAL:
124
+ return "NODE_RATIONAL";
125
+ case NODE_IMAGINARY:
126
+ return "NODE_IMAGINARY";
127
+ case NODE_STR:
128
+ return "NODE_STR";
129
+ case NODE_DSTR:
130
+ return "NODE_DSTR";
131
+ case NODE_XSTR:
132
+ return "NODE_XSTR";
133
+ case NODE_DXSTR:
134
+ return "NODE_DXSTR";
135
+ case NODE_EVSTR:
136
+ return "NODE_EVSTR";
137
+ case NODE_REGX:
138
+ return "NODE_REGX";
139
+ case NODE_DREGX:
140
+ return "NODE_DREGX";
141
+ case NODE_ONCE:
142
+ return "NODE_ONCE";
143
+ case NODE_ARGS:
144
+ return "NODE_ARGS";
145
+ case NODE_ARGS_AUX:
146
+ return "NODE_ARGS_AUX";
147
+ case NODE_OPT_ARG:
148
+ return "NODE_OPT_ARG";
149
+ case NODE_KW_ARG:
150
+ return "NODE_KW_ARG";
151
+ case NODE_POSTARG:
152
+ return "NODE_POSTARG";
153
+ case NODE_ARGSCAT:
154
+ return "NODE_ARGSCAT";
155
+ case NODE_ARGSPUSH:
156
+ return "NODE_ARGSPUSH";
157
+ case NODE_SPLAT:
158
+ return "NODE_SPLAT";
159
+ case NODE_BLOCK_PASS:
160
+ return "NODE_BLOCK_PASS";
161
+ case NODE_DEFN:
162
+ return "NODE_DEFN";
163
+ case NODE_DEFS:
164
+ return "NODE_DEFS";
165
+ case NODE_ALIAS:
166
+ return "NODE_ALIAS";
167
+ case NODE_VALIAS:
168
+ return "NODE_VALIAS";
169
+ case NODE_UNDEF:
170
+ return "NODE_UNDEF";
171
+ case NODE_CLASS:
172
+ return "NODE_CLASS";
173
+ case NODE_MODULE:
174
+ return "NODE_MODULE";
175
+ case NODE_SCLASS:
176
+ return "NODE_SCLASS";
177
+ case NODE_COLON2:
178
+ return "NODE_COLON2";
179
+ case NODE_COLON3:
180
+ return "NODE_COLON3";
181
+ case NODE_DOT2:
182
+ return "NODE_DOT2";
183
+ case NODE_DOT3:
184
+ return "NODE_DOT3";
185
+ case NODE_FLIP2:
186
+ return "NODE_FLIP2";
187
+ case NODE_FLIP3:
188
+ return "NODE_FLIP3";
189
+ case NODE_SELF:
190
+ return "NODE_SELF";
191
+ case NODE_NIL:
192
+ return "NODE_NIL";
193
+ case NODE_TRUE:
194
+ return "NODE_TRUE";
195
+ case NODE_FALSE:
196
+ return "NODE_FALSE";
197
+ case NODE_ERRINFO:
198
+ return "NODE_ERRINFO";
199
+ case NODE_DEFINED:
200
+ return "NODE_DEFINED";
201
+ case NODE_POSTEXE:
202
+ return "NODE_POSTEXE";
203
+ case NODE_SYM:
204
+ return "NODE_SYM";
205
+ case NODE_DSYM:
206
+ return "NODE_DSYM";
207
+ case NODE_ATTRASGN:
208
+ return "NODE_ATTRASGN";
209
+ case NODE_LAMBDA:
210
+ return "NODE_LAMBDA";
211
+ case NODE_ARYPTN:
212
+ return "NODE_ARYPTN";
213
+ case NODE_HSHPTN:
214
+ return "NODE_HSHPTN";
215
+ case NODE_FNDPTN:
216
+ return "NODE_FNDPTN";
217
+ case NODE_ERROR:
218
+ return "NODE_ERROR";
219
+ case NODE_LINE:
220
+ return "NODE_LINE";
221
+ case NODE_FILE:
222
+ return "NODE_FILE";
223
+ case NODE_ENCODING:
224
+ return "NODE_ENCODING";