ibex-runtime 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +337 -0
  4. data/lib/ibex/runtime/ast_data.rb +23 -0
  5. data/lib/ibex/runtime/cst/annotation.rb +16 -0
  6. data/lib/ibex/runtime/cst/cursor.rb +68 -0
  7. data/lib/ibex/runtime/cst/diff.rb +80 -0
  8. data/lib/ibex/runtime/cst/editing.rb +56 -0
  9. data/lib/ibex/runtime/cst/editor.rb +94 -0
  10. data/lib/ibex/runtime/cst/green/builder.rb +211 -0
  11. data/lib/ibex/runtime/cst/green/cache.rb +150 -0
  12. data/lib/ibex/runtime/cst/green/node.rb +78 -0
  13. data/lib/ibex/runtime/cst/green/token.rb +91 -0
  14. data/lib/ibex/runtime/cst/green/trivia.rb +36 -0
  15. data/lib/ibex/runtime/cst/incremental/blender.rb +233 -0
  16. data/lib/ibex/runtime/cst/incremental/lexed_syntax.rb +28 -0
  17. data/lib/ibex/runtime/cst/incremental/parse_memo.rb +95 -0
  18. data/lib/ibex/runtime/cst/incremental/relexer.rb +134 -0
  19. data/lib/ibex/runtime/cst/incremental/session.rb +229 -0
  20. data/lib/ibex/runtime/cst/incremental/token_memo.rb +66 -0
  21. data/lib/ibex/runtime/cst/kind.rb +133 -0
  22. data/lib/ibex/runtime/cst/parse_result.rb +41 -0
  23. data/lib/ibex/runtime/cst/rewriter.rb +75 -0
  24. data/lib/ibex/runtime/cst/serialize.rb +127 -0
  25. data/lib/ibex/runtime/cst/serialized_tree.rb +44 -0
  26. data/lib/ibex/runtime/cst/source_text.rb +112 -0
  27. data/lib/ibex/runtime/cst/syntax_node.rb +432 -0
  28. data/lib/ibex/runtime/cst/syntax_token.rb +160 -0
  29. data/lib/ibex/runtime/cst/text_edit.rb +77 -0
  30. data/lib/ibex/runtime/cst/typed_node.rb +87 -0
  31. data/lib/ibex/runtime/cst/validator.rb +428 -0
  32. data/lib/ibex/runtime/cst.rb +38 -0
  33. data/lib/ibex/runtime/event.rb +44 -0
  34. data/lib/ibex/runtime/event_jsonl_tracer.rb +37 -0
  35. data/lib/ibex/runtime/event_sanitizer.rb +273 -0
  36. data/lib/ibex/runtime/generated_lexer.rb +514 -0
  37. data/lib/ibex/runtime/jsonl_tracer.rb +75 -0
  38. data/lib/ibex/runtime/lexer_input.rb +107 -0
  39. data/lib/ibex/runtime/location_span.rb +114 -0
  40. data/lib/ibex/runtime/observation.rb +82 -0
  41. data/lib/ibex/runtime/parser.rb +3027 -0
  42. data/lib/ibex/runtime/parser_sync_recovery.rb +108 -0
  43. data/lib/ibex/runtime/repair.rb +126 -0
  44. data/lib/ibex/runtime/repair_priority_queue.rb +60 -0
  45. data/lib/ibex/runtime/repair_search.rb +318 -0
  46. data/lib/ibex/runtime/resource_limits.rb +64 -0
  47. data/lib/ibex/runtime/table_format.rb +11 -0
  48. data/lib/ibex/runtime/version.rb +7 -0
  49. data/lib/ibex/runtime.rb +27 -0
  50. data/lib/ibex/tables/compact.rb +186 -0
  51. data/lib/ibex/tables/compact_actions.rb +135 -0
  52. data/lib/ibex/tables/compact_productions.rb +167 -0
  53. data/sig/ibex/runtime/ast_data.rbs +12 -0
  54. data/sig/ibex/runtime/cst/annotation.rbs +13 -0
  55. data/sig/ibex/runtime/cst/cursor.rbs +34 -0
  56. data/sig/ibex/runtime/cst/diff.rbs +29 -0
  57. data/sig/ibex/runtime/cst/editing.rbs +23 -0
  58. data/sig/ibex/runtime/cst/editor.rbs +43 -0
  59. data/sig/ibex/runtime/cst/green/builder.rbs +84 -0
  60. data/sig/ibex/runtime/cst/green/cache.rbs +60 -0
  61. data/sig/ibex/runtime/cst/green/node.rbs +49 -0
  62. data/sig/ibex/runtime/cst/green/token.rbs +59 -0
  63. data/sig/ibex/runtime/cst/green/trivia.rbs +29 -0
  64. data/sig/ibex/runtime/cst/incremental/blender.rbs +114 -0
  65. data/sig/ibex/runtime/cst/incremental/lexed_syntax.rbs +20 -0
  66. data/sig/ibex/runtime/cst/incremental/parse_memo.rbs +59 -0
  67. data/sig/ibex/runtime/cst/incremental/relexer.rbs +54 -0
  68. data/sig/ibex/runtime/cst/incremental/session.rbs +89 -0
  69. data/sig/ibex/runtime/cst/incremental/token_memo.rbs +31 -0
  70. data/sig/ibex/runtime/cst/kind.rbs +93 -0
  71. data/sig/ibex/runtime/cst/parse_result.rbs +35 -0
  72. data/sig/ibex/runtime/cst/rewriter.rbs +31 -0
  73. data/sig/ibex/runtime/cst/serialize.rbs +39 -0
  74. data/sig/ibex/runtime/cst/serialized_tree.rbs +34 -0
  75. data/sig/ibex/runtime/cst/source_text.rbs +51 -0
  76. data/sig/ibex/runtime/cst/syntax_node.rbs +195 -0
  77. data/sig/ibex/runtime/cst/syntax_token.rbs +112 -0
  78. data/sig/ibex/runtime/cst/text_edit.rbs +33 -0
  79. data/sig/ibex/runtime/cst/typed_node.rbs +50 -0
  80. data/sig/ibex/runtime/cst/validator.rbs +108 -0
  81. data/sig/ibex/runtime/cst.rbs +9 -0
  82. data/sig/ibex/runtime/event.rbs +26 -0
  83. data/sig/ibex/runtime/event_jsonl_tracer.rbs +25 -0
  84. data/sig/ibex/runtime/event_sanitizer.rbs +92 -0
  85. data/sig/ibex/runtime/generated_lexer.rbs +169 -0
  86. data/sig/ibex/runtime/jsonl_tracer.rbs +42 -0
  87. data/sig/ibex/runtime/lexer_input.rbs +44 -0
  88. data/sig/ibex/runtime/location_span.rbs +64 -0
  89. data/sig/ibex/runtime/observation.rbs +35 -0
  90. data/sig/ibex/runtime/parser.rbs +926 -0
  91. data/sig/ibex/runtime/parser_sync_recovery.rbs +60 -0
  92. data/sig/ibex/runtime/repair.rbs +92 -0
  93. data/sig/ibex/runtime/repair_priority_queue.rbs +27 -0
  94. data/sig/ibex/runtime/repair_search.rbs +114 -0
  95. data/sig/ibex/runtime/resource_limits.rbs +39 -0
  96. data/sig/ibex/runtime/table_format.rbs +11 -0
  97. data/sig/ibex/runtime/version.rbs +7 -0
  98. data/sig/ibex/runtime.rbs +6 -0
  99. data/sig/ibex/tables/compact.rbs +70 -0
  100. data/sig/ibex/tables/compact_actions.rbs +57 -0
  101. data/sig/ibex/tables/compact_productions.rbs +68 -0
  102. metadata +144 -0
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ibex-runtime
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Yudai Takada
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Ibex Runtime executes generated LR parsers without installing the parser
13
+ generator.
14
+ email:
15
+ - t.yudai92@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - lib/ibex/runtime.rb
23
+ - lib/ibex/runtime/ast_data.rb
24
+ - lib/ibex/runtime/cst.rb
25
+ - lib/ibex/runtime/cst/annotation.rb
26
+ - lib/ibex/runtime/cst/cursor.rb
27
+ - lib/ibex/runtime/cst/diff.rb
28
+ - lib/ibex/runtime/cst/editing.rb
29
+ - lib/ibex/runtime/cst/editor.rb
30
+ - lib/ibex/runtime/cst/green/builder.rb
31
+ - lib/ibex/runtime/cst/green/cache.rb
32
+ - lib/ibex/runtime/cst/green/node.rb
33
+ - lib/ibex/runtime/cst/green/token.rb
34
+ - lib/ibex/runtime/cst/green/trivia.rb
35
+ - lib/ibex/runtime/cst/incremental/blender.rb
36
+ - lib/ibex/runtime/cst/incremental/lexed_syntax.rb
37
+ - lib/ibex/runtime/cst/incremental/parse_memo.rb
38
+ - lib/ibex/runtime/cst/incremental/relexer.rb
39
+ - lib/ibex/runtime/cst/incremental/session.rb
40
+ - lib/ibex/runtime/cst/incremental/token_memo.rb
41
+ - lib/ibex/runtime/cst/kind.rb
42
+ - lib/ibex/runtime/cst/parse_result.rb
43
+ - lib/ibex/runtime/cst/rewriter.rb
44
+ - lib/ibex/runtime/cst/serialize.rb
45
+ - lib/ibex/runtime/cst/serialized_tree.rb
46
+ - lib/ibex/runtime/cst/source_text.rb
47
+ - lib/ibex/runtime/cst/syntax_node.rb
48
+ - lib/ibex/runtime/cst/syntax_token.rb
49
+ - lib/ibex/runtime/cst/text_edit.rb
50
+ - lib/ibex/runtime/cst/typed_node.rb
51
+ - lib/ibex/runtime/cst/validator.rb
52
+ - lib/ibex/runtime/event.rb
53
+ - lib/ibex/runtime/event_jsonl_tracer.rb
54
+ - lib/ibex/runtime/event_sanitizer.rb
55
+ - lib/ibex/runtime/generated_lexer.rb
56
+ - lib/ibex/runtime/jsonl_tracer.rb
57
+ - lib/ibex/runtime/lexer_input.rb
58
+ - lib/ibex/runtime/location_span.rb
59
+ - lib/ibex/runtime/observation.rb
60
+ - lib/ibex/runtime/parser.rb
61
+ - lib/ibex/runtime/parser_sync_recovery.rb
62
+ - lib/ibex/runtime/repair.rb
63
+ - lib/ibex/runtime/repair_priority_queue.rb
64
+ - lib/ibex/runtime/repair_search.rb
65
+ - lib/ibex/runtime/resource_limits.rb
66
+ - lib/ibex/runtime/table_format.rb
67
+ - lib/ibex/runtime/version.rb
68
+ - lib/ibex/tables/compact.rb
69
+ - lib/ibex/tables/compact_actions.rb
70
+ - lib/ibex/tables/compact_productions.rb
71
+ - sig/ibex/runtime.rbs
72
+ - sig/ibex/runtime/ast_data.rbs
73
+ - sig/ibex/runtime/cst.rbs
74
+ - sig/ibex/runtime/cst/annotation.rbs
75
+ - sig/ibex/runtime/cst/cursor.rbs
76
+ - sig/ibex/runtime/cst/diff.rbs
77
+ - sig/ibex/runtime/cst/editing.rbs
78
+ - sig/ibex/runtime/cst/editor.rbs
79
+ - sig/ibex/runtime/cst/green/builder.rbs
80
+ - sig/ibex/runtime/cst/green/cache.rbs
81
+ - sig/ibex/runtime/cst/green/node.rbs
82
+ - sig/ibex/runtime/cst/green/token.rbs
83
+ - sig/ibex/runtime/cst/green/trivia.rbs
84
+ - sig/ibex/runtime/cst/incremental/blender.rbs
85
+ - sig/ibex/runtime/cst/incremental/lexed_syntax.rbs
86
+ - sig/ibex/runtime/cst/incremental/parse_memo.rbs
87
+ - sig/ibex/runtime/cst/incremental/relexer.rbs
88
+ - sig/ibex/runtime/cst/incremental/session.rbs
89
+ - sig/ibex/runtime/cst/incremental/token_memo.rbs
90
+ - sig/ibex/runtime/cst/kind.rbs
91
+ - sig/ibex/runtime/cst/parse_result.rbs
92
+ - sig/ibex/runtime/cst/rewriter.rbs
93
+ - sig/ibex/runtime/cst/serialize.rbs
94
+ - sig/ibex/runtime/cst/serialized_tree.rbs
95
+ - sig/ibex/runtime/cst/source_text.rbs
96
+ - sig/ibex/runtime/cst/syntax_node.rbs
97
+ - sig/ibex/runtime/cst/syntax_token.rbs
98
+ - sig/ibex/runtime/cst/text_edit.rbs
99
+ - sig/ibex/runtime/cst/typed_node.rbs
100
+ - sig/ibex/runtime/cst/validator.rbs
101
+ - sig/ibex/runtime/event.rbs
102
+ - sig/ibex/runtime/event_jsonl_tracer.rbs
103
+ - sig/ibex/runtime/event_sanitizer.rbs
104
+ - sig/ibex/runtime/generated_lexer.rbs
105
+ - sig/ibex/runtime/jsonl_tracer.rbs
106
+ - sig/ibex/runtime/lexer_input.rbs
107
+ - sig/ibex/runtime/location_span.rbs
108
+ - sig/ibex/runtime/observation.rbs
109
+ - sig/ibex/runtime/parser.rbs
110
+ - sig/ibex/runtime/parser_sync_recovery.rbs
111
+ - sig/ibex/runtime/repair.rbs
112
+ - sig/ibex/runtime/repair_priority_queue.rbs
113
+ - sig/ibex/runtime/repair_search.rbs
114
+ - sig/ibex/runtime/resource_limits.rbs
115
+ - sig/ibex/runtime/table_format.rbs
116
+ - sig/ibex/runtime/version.rbs
117
+ - sig/ibex/tables/compact.rbs
118
+ - sig/ibex/tables/compact_actions.rbs
119
+ - sig/ibex/tables/compact_productions.rbs
120
+ homepage: https://github.com/ydah/ibex
121
+ licenses:
122
+ - MIT
123
+ metadata:
124
+ homepage_uri: https://github.com/ydah/ibex
125
+ source_code_uri: https://github.com/ydah/ibex/tree/main
126
+ rubygems_mfa_required: 'true'
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.0.0
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 4.0.6
142
+ specification_version: 4
143
+ summary: The Pure Ruby runtime for generated Ibex parsers
144
+ test_files: []