tabry 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tabry/shells/bash.rb +12 -5
  3. data/sh/bash/README.md +2 -1
  4. data/tabry.gemspec +19 -2
  5. data/treesitter/Cargo.toml +26 -0
  6. data/treesitter/README.md +4 -0
  7. data/treesitter/binding.gyp +19 -0
  8. data/treesitter/bindings/node/binding.cc +28 -0
  9. data/treesitter/bindings/node/index.js +19 -0
  10. data/treesitter/bindings/rust/build.rs +40 -0
  11. data/treesitter/bindings/rust/lib.rs +52 -0
  12. data/treesitter/corpus/arg.txt +96 -0
  13. data/treesitter/corpus/at.txt +79 -0
  14. data/treesitter/corpus/comment.txt +13 -0
  15. data/treesitter/corpus/desc.txt +25 -0
  16. data/treesitter/corpus/examples_from_language_reference.txt +410 -0
  17. data/treesitter/corpus/flag.txt +48 -0
  18. data/treesitter/corpus/flag_desc_inline.txt +37 -0
  19. data/treesitter/corpus/opts.txt +21 -0
  20. data/treesitter/corpus/rapture.txt +61 -0
  21. data/treesitter/grammar.js +171 -0
  22. data/treesitter/jest_fixtures/examples_from_language_reference/argument_titles.yml +8 -0
  23. data/treesitter/jest_fixtures/examples_from_language_reference/arguments_and_possible_options__arg_.yml +23 -0
  24. data/treesitter/jest_fixtures/examples_from_language_reference/flags__flag__flagarg__reqd_flagarg_.yml +37 -0
  25. data/treesitter/jest_fixtures/examples_from_language_reference/getting_started.yml +13 -0
  26. data/treesitter/jest_fixtures/examples_from_language_reference/includes.yml +57 -0
  27. data/treesitter/jest_fixtures/examples_from_language_reference/multi_line_descriptions.yml +7 -0
  28. data/treesitter/jest_fixtures/examples_from_language_reference/optional_args_and_varargs__opt_arg__varargs__opt_varargs_.yml +16 -0
  29. data/treesitter/jest_fixtures/examples_from_language_reference/options.yml +24 -0
  30. data/treesitter/jest_fixtures/examples_from_language_reference/subcommands__sub__1.yml +23 -0
  31. data/treesitter/jest_fixtures/examples_from_language_reference/subcommands__sub__2.yml +15 -0
  32. data/treesitter/package.json +21 -0
  33. data/treesitter/parser_compile.sh +1 -0
  34. data/treesitter/src/grammar.json +615 -0
  35. data/treesitter/src/node-types.json +563 -0
  36. data/treesitter/src/parser.c +4706 -0
  37. data/treesitter/src/tree_sitter/parser.h +223 -0
  38. data/treesitter/tabry-compile.js +394 -0
  39. data/treesitter/tabry-compile.test.js +51 -0
  40. metadata +36 -1
@@ -0,0 +1,563 @@
1
+ [
2
+ {
3
+ "type": "arg_name_list",
4
+ "named": true,
5
+ "fields": {},
6
+ "children": {
7
+ "multiple": true,
8
+ "required": false,
9
+ "types": [
10
+ {
11
+ "type": "string",
12
+ "named": true
13
+ }
14
+ ]
15
+ }
16
+ },
17
+ {
18
+ "type": "arg_statement",
19
+ "named": true,
20
+ "fields": {
21
+ "at": {
22
+ "multiple": true,
23
+ "required": false,
24
+ "types": [
25
+ {
26
+ "type": "at_identifier",
27
+ "named": true
28
+ }
29
+ ]
30
+ }
31
+ },
32
+ "children": {
33
+ "multiple": true,
34
+ "required": true,
35
+ "types": [
36
+ {
37
+ "type": "arg_modifier",
38
+ "named": true
39
+ },
40
+ {
41
+ "type": "arg_name_list",
42
+ "named": true
43
+ },
44
+ {
45
+ "type": "arg_type",
46
+ "named": true
47
+ },
48
+ {
49
+ "type": "block",
50
+ "named": true
51
+ },
52
+ {
53
+ "type": "string",
54
+ "named": true
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "type": "arg_type",
61
+ "named": true,
62
+ "fields": {}
63
+ },
64
+ {
65
+ "type": "block",
66
+ "named": true,
67
+ "fields": {},
68
+ "children": {
69
+ "multiple": true,
70
+ "required": false,
71
+ "types": [
72
+ {
73
+ "type": "arg_statement",
74
+ "named": true
75
+ },
76
+ {
77
+ "type": "desc_statement",
78
+ "named": true
79
+ },
80
+ {
81
+ "type": "flag_statement",
82
+ "named": true
83
+ },
84
+ {
85
+ "type": "flagarg_statement",
86
+ "named": true
87
+ },
88
+ {
89
+ "type": "include_statement",
90
+ "named": true
91
+ },
92
+ {
93
+ "type": "opts_const_statement",
94
+ "named": true
95
+ },
96
+ {
97
+ "type": "opts_dir_statement",
98
+ "named": true
99
+ },
100
+ {
101
+ "type": "opts_file_statement",
102
+ "named": true
103
+ },
104
+ {
105
+ "type": "opts_shell_statement",
106
+ "named": true
107
+ },
108
+ {
109
+ "type": "sub_statement",
110
+ "named": true
111
+ },
112
+ {
113
+ "type": "title_statement",
114
+ "named": true
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "type": "cmd_statement",
121
+ "named": true,
122
+ "fields": {},
123
+ "children": {
124
+ "multiple": false,
125
+ "required": true,
126
+ "types": [
127
+ {
128
+ "type": "string",
129
+ "named": true
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ {
135
+ "type": "defargs_statement",
136
+ "named": true,
137
+ "fields": {},
138
+ "children": {
139
+ "multiple": true,
140
+ "required": true,
141
+ "types": [
142
+ {
143
+ "type": "at_identifier",
144
+ "named": true
145
+ },
146
+ {
147
+ "type": "block",
148
+ "named": true
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "type": "defopts_statement",
155
+ "named": true,
156
+ "fields": {},
157
+ "children": {
158
+ "multiple": true,
159
+ "required": true,
160
+ "types": [
161
+ {
162
+ "type": "at_identifier",
163
+ "named": true
164
+ },
165
+ {
166
+ "type": "block",
167
+ "named": true
168
+ }
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "type": "desc_statement",
174
+ "named": true,
175
+ "fields": {},
176
+ "children": {
177
+ "multiple": false,
178
+ "required": true,
179
+ "types": [
180
+ {
181
+ "type": "string",
182
+ "named": true
183
+ }
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "type": "flag_modifier",
189
+ "named": true,
190
+ "fields": {}
191
+ },
192
+ {
193
+ "type": "flag_name_list",
194
+ "named": true,
195
+ "fields": {},
196
+ "children": {
197
+ "multiple": true,
198
+ "required": false,
199
+ "types": [
200
+ {
201
+ "type": "string",
202
+ "named": true
203
+ }
204
+ ]
205
+ }
206
+ },
207
+ {
208
+ "type": "flag_statement",
209
+ "named": true,
210
+ "fields": {
211
+ "desc": {
212
+ "multiple": false,
213
+ "required": false,
214
+ "types": [
215
+ {
216
+ "type": "string",
217
+ "named": true
218
+ }
219
+ ]
220
+ },
221
+ "names": {
222
+ "multiple": false,
223
+ "required": true,
224
+ "types": [
225
+ {
226
+ "type": "flag_name_list",
227
+ "named": true
228
+ }
229
+ ]
230
+ }
231
+ },
232
+ "children": {
233
+ "multiple": true,
234
+ "required": false,
235
+ "types": [
236
+ {
237
+ "type": "at_identifier",
238
+ "named": true
239
+ },
240
+ {
241
+ "type": "block",
242
+ "named": true
243
+ },
244
+ {
245
+ "type": "flag_modifier",
246
+ "named": true
247
+ }
248
+ ]
249
+ }
250
+ },
251
+ {
252
+ "type": "flagarg_statement",
253
+ "named": true,
254
+ "fields": {
255
+ "desc": {
256
+ "multiple": false,
257
+ "required": false,
258
+ "types": [
259
+ {
260
+ "type": "string",
261
+ "named": true
262
+ }
263
+ ]
264
+ },
265
+ "names": {
266
+ "multiple": false,
267
+ "required": true,
268
+ "types": [
269
+ {
270
+ "type": "flag_name_list",
271
+ "named": true
272
+ }
273
+ ]
274
+ }
275
+ },
276
+ "children": {
277
+ "multiple": true,
278
+ "required": false,
279
+ "types": [
280
+ {
281
+ "type": "at_identifier",
282
+ "named": true
283
+ },
284
+ {
285
+ "type": "block",
286
+ "named": true
287
+ },
288
+ {
289
+ "type": "flag_modifier",
290
+ "named": true
291
+ }
292
+ ]
293
+ }
294
+ },
295
+ {
296
+ "type": "include_statement",
297
+ "named": true,
298
+ "fields": {},
299
+ "children": {
300
+ "multiple": false,
301
+ "required": true,
302
+ "types": [
303
+ {
304
+ "type": "at_identifier",
305
+ "named": true
306
+ }
307
+ ]
308
+ }
309
+ },
310
+ {
311
+ "type": "opts_const_statement",
312
+ "named": true,
313
+ "fields": {},
314
+ "children": {
315
+ "multiple": true,
316
+ "required": false,
317
+ "types": [
318
+ {
319
+ "type": "string",
320
+ "named": true
321
+ }
322
+ ]
323
+ }
324
+ },
325
+ {
326
+ "type": "opts_dir_statement",
327
+ "named": true,
328
+ "fields": {}
329
+ },
330
+ {
331
+ "type": "opts_file_statement",
332
+ "named": true,
333
+ "fields": {}
334
+ },
335
+ {
336
+ "type": "opts_shell_statement",
337
+ "named": true,
338
+ "fields": {},
339
+ "children": {
340
+ "multiple": false,
341
+ "required": true,
342
+ "types": [
343
+ {
344
+ "type": "string",
345
+ "named": true
346
+ }
347
+ ]
348
+ }
349
+ },
350
+ {
351
+ "type": "source_file",
352
+ "named": true,
353
+ "fields": {},
354
+ "children": {
355
+ "multiple": true,
356
+ "required": false,
357
+ "types": [
358
+ {
359
+ "type": "arg_statement",
360
+ "named": true
361
+ },
362
+ {
363
+ "type": "cmd_statement",
364
+ "named": true
365
+ },
366
+ {
367
+ "type": "defargs_statement",
368
+ "named": true
369
+ },
370
+ {
371
+ "type": "defopts_statement",
372
+ "named": true
373
+ },
374
+ {
375
+ "type": "desc_statement",
376
+ "named": true
377
+ },
378
+ {
379
+ "type": "flag_statement",
380
+ "named": true
381
+ },
382
+ {
383
+ "type": "flagarg_statement",
384
+ "named": true
385
+ },
386
+ {
387
+ "type": "include_statement",
388
+ "named": true
389
+ },
390
+ {
391
+ "type": "sub_statement",
392
+ "named": true
393
+ }
394
+ ]
395
+ }
396
+ },
397
+ {
398
+ "type": "sub_name_list",
399
+ "named": true,
400
+ "fields": {},
401
+ "children": {
402
+ "multiple": true,
403
+ "required": false,
404
+ "types": [
405
+ {
406
+ "type": "string",
407
+ "named": true
408
+ }
409
+ ]
410
+ }
411
+ },
412
+ {
413
+ "type": "sub_statement",
414
+ "named": true,
415
+ "fields": {
416
+ "desc": {
417
+ "multiple": false,
418
+ "required": false,
419
+ "types": [
420
+ {
421
+ "type": "string",
422
+ "named": true
423
+ }
424
+ ]
425
+ },
426
+ "names": {
427
+ "multiple": false,
428
+ "required": true,
429
+ "types": [
430
+ {
431
+ "type": "sub_name_list",
432
+ "named": true
433
+ }
434
+ ]
435
+ }
436
+ },
437
+ "children": {
438
+ "multiple": true,
439
+ "required": false,
440
+ "types": [
441
+ {
442
+ "type": "at_identifier",
443
+ "named": true
444
+ },
445
+ {
446
+ "type": "block",
447
+ "named": true
448
+ }
449
+ ]
450
+ }
451
+ },
452
+ {
453
+ "type": "title_statement",
454
+ "named": true,
455
+ "fields": {},
456
+ "children": {
457
+ "multiple": false,
458
+ "required": true,
459
+ "types": [
460
+ {
461
+ "type": "string",
462
+ "named": true
463
+ }
464
+ ]
465
+ }
466
+ },
467
+ {
468
+ "type": "(",
469
+ "named": false
470
+ },
471
+ {
472
+ "type": ")",
473
+ "named": false
474
+ },
475
+ {
476
+ "type": "arg",
477
+ "named": false
478
+ },
479
+ {
480
+ "type": "arg_modifier",
481
+ "named": true
482
+ },
483
+ {
484
+ "type": "at_identifier",
485
+ "named": true
486
+ },
487
+ {
488
+ "type": "cmd",
489
+ "named": false
490
+ },
491
+ {
492
+ "type": "const",
493
+ "named": false
494
+ },
495
+ {
496
+ "type": "defargs",
497
+ "named": false
498
+ },
499
+ {
500
+ "type": "defopts",
501
+ "named": false
502
+ },
503
+ {
504
+ "type": "desc",
505
+ "named": false
506
+ },
507
+ {
508
+ "type": "dir",
509
+ "named": false
510
+ },
511
+ {
512
+ "type": "file",
513
+ "named": false
514
+ },
515
+ {
516
+ "type": "flag",
517
+ "named": false
518
+ },
519
+ {
520
+ "type": "flagarg",
521
+ "named": false
522
+ },
523
+ {
524
+ "type": "include",
525
+ "named": false
526
+ },
527
+ {
528
+ "type": "opts",
529
+ "named": false
530
+ },
531
+ {
532
+ "type": "reqd",
533
+ "named": false
534
+ },
535
+ {
536
+ "type": "shell",
537
+ "named": false
538
+ },
539
+ {
540
+ "type": "string",
541
+ "named": true
542
+ },
543
+ {
544
+ "type": "sub",
545
+ "named": false
546
+ },
547
+ {
548
+ "type": "title",
549
+ "named": false
550
+ },
551
+ {
552
+ "type": "varargs",
553
+ "named": false
554
+ },
555
+ {
556
+ "type": "{",
557
+ "named": false
558
+ },
559
+ {
560
+ "type": "}",
561
+ "named": false
562
+ }
563
+ ]