racc 1.4.14-java → 1.4.15-java

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 (61) hide show
  1. checksums.yaml +5 -5
  2. data/Manifest.txt +50 -0
  3. data/ext/racc/com/headius/racc/Cparse.java +66 -23
  4. data/ext/racc/cparse.c +1 -1
  5. data/ext/racc/depend +1 -1
  6. data/lib/racc/cparse-jruby.jar +0 -0
  7. data/lib/racc/info.rb +2 -2
  8. data/test/assets/bibtex.y +141 -0
  9. data/test/assets/cadenza.y +170 -0
  10. data/test/assets/cast.y +926 -0
  11. data/test/assets/csspool.y +729 -0
  12. data/test/assets/edtf.y +583 -0
  13. data/test/assets/huia.y +318 -0
  14. data/test/assets/journey.y +47 -0
  15. data/test/assets/liquor.y +313 -0
  16. data/test/assets/machete.y +423 -0
  17. data/test/assets/macruby.y +2197 -0
  18. data/test/assets/mediacloth.y +599 -0
  19. data/test/assets/mof.y +649 -0
  20. data/test/assets/namae.y +302 -0
  21. data/test/assets/nasl.y +626 -0
  22. data/test/assets/nokogiri-css.y +255 -0
  23. data/test/assets/opal.y +1807 -0
  24. data/test/assets/php_serialization.y +98 -0
  25. data/test/assets/rdblockparser.y +576 -0
  26. data/test/assets/rdinlineparser.y +561 -0
  27. data/test/assets/riml.y +665 -0
  28. data/test/assets/ruby18.y +1943 -0
  29. data/test/assets/ruby19.y +2174 -0
  30. data/test/assets/ruby20.y +2350 -0
  31. data/test/assets/ruby21.y +2359 -0
  32. data/test/assets/ruby22.y +2381 -0
  33. data/test/assets/tp_plus.y +622 -0
  34. data/test/assets/twowaysql.y +278 -0
  35. data/test/helper.rb +50 -34
  36. data/test/regress/bibtex +474 -0
  37. data/test/regress/cadenza +796 -0
  38. data/test/regress/cast +3425 -0
  39. data/test/regress/csspool +2318 -0
  40. data/test/regress/edtf +1794 -0
  41. data/test/regress/huia +1392 -0
  42. data/test/regress/journey +222 -0
  43. data/test/regress/liquor +885 -0
  44. data/test/regress/machete +833 -0
  45. data/test/regress/mediacloth +1463 -0
  46. data/test/regress/mof +1368 -0
  47. data/test/regress/namae +634 -0
  48. data/test/regress/nasl +2058 -0
  49. data/test/regress/nokogiri-css +836 -0
  50. data/test/regress/opal +6429 -0
  51. data/test/regress/php_serialization +336 -0
  52. data/test/regress/rdblockparser +1061 -0
  53. data/test/regress/rdinlineparser +1243 -0
  54. data/test/regress/riml +3297 -0
  55. data/test/regress/ruby18 +6351 -0
  56. data/test/regress/ruby22 +7456 -0
  57. data/test/regress/tp_plus +1933 -0
  58. data/test/regress/twowaysql +556 -0
  59. data/test/test_racc_command.rb +177 -0
  60. metadata +80 -25
  61. data/.gemtest +0 -0
@@ -160,5 +160,182 @@ module Racc
160
160
  assert_exec 'error_recovery.y'
161
161
  end
162
162
  end
163
+
164
+ # .y files from `parser` gem
165
+
166
+ def test_ruby18
167
+ assert_compile 'ruby18.y'
168
+ assert_debugfile 'ruby18.y', []
169
+ assert_output_unchanged 'ruby18.y'
170
+ end
171
+
172
+ def test_ruby22
173
+ assert_compile 'ruby22.y'
174
+ assert_debugfile 'ruby22.y', []
175
+ assert_output_unchanged 'ruby22.y'
176
+ end
177
+
178
+ # .y file from csspool gem
179
+
180
+ def test_csspool
181
+ assert_compile 'csspool.y'
182
+ assert_debugfile 'csspool.y', [5, 3]
183
+ assert_output_unchanged 'csspool.y'
184
+ end
185
+
186
+ # .y file from opal gem
187
+
188
+ def test_opal
189
+ assert_compile 'opal.y'
190
+ assert_debugfile 'opal.y', []
191
+ assert_output_unchanged 'opal.y'
192
+ end
193
+
194
+ # .y file from journey gem
195
+
196
+ def test_journey
197
+ assert_compile 'journey.y'
198
+ assert_debugfile 'journey.y', []
199
+ assert_output_unchanged 'journey.y'
200
+ end
201
+
202
+ # .y file from nokogiri gem
203
+
204
+ def test_nokogiri_css
205
+ assert_compile 'nokogiri-css.y'
206
+ assert_debugfile 'nokogiri-css.y', [0, 1]
207
+ assert_output_unchanged 'nokogiri-css.y'
208
+ end
209
+
210
+ # .y file from bibtex-ruby gem
211
+
212
+ def test_bibtex
213
+ assert_compile 'bibtex.y'
214
+ assert_debugfile 'bibtex.y', [0, 0, 0, 0, 0]
215
+ assert_output_unchanged 'bibtex.y'
216
+ end
217
+
218
+ # .y file from edtf-ruby gem
219
+
220
+ def test_edtf
221
+ assert_compile 'edtf.y'
222
+ assert_debugfile 'edtf.y', [0, 0, 0, 0, 0]
223
+ assert_output_unchanged 'edtf.y'
224
+ end
225
+
226
+ # .y file from namae gem
227
+
228
+ def test_namae
229
+ assert_compile 'namae.y'
230
+ assert_debugfile 'namae.y', [0, 0, 0, 0, 0]
231
+ assert_output_unchanged 'namae.y'
232
+ end
233
+
234
+ # .y file from liquor gem
235
+
236
+ def test_liquor
237
+ assert_compile 'liquor.y'
238
+ assert_debugfile 'liquor.y', [0, 0, 0, 0, 15]
239
+ assert_output_unchanged 'liquor.y'
240
+ end
241
+
242
+ # .y file from nasl gem
243
+
244
+ def test_nasl
245
+ assert_compile 'nasl.y'
246
+ assert_debugfile 'nasl.y', [0, 0, 0, 0, 1]
247
+ assert_output_unchanged 'nasl.y'
248
+ end
249
+
250
+ # .y file from riml gem
251
+
252
+ def test_riml
253
+ assert_compile 'riml.y'
254
+ assert_debugfile 'riml.y', [289, 0, 0, 0]
255
+ assert_output_unchanged 'riml.y'
256
+ end
257
+
258
+ # .y file from ruby-php-serialization gem
259
+
260
+ def test_php_serialization
261
+ assert_compile 'php_serialization.y'
262
+ assert_debugfile 'php_serialization.y', [0, 0, 0, 0]
263
+ assert_output_unchanged 'php_serialization.y'
264
+ end
265
+
266
+ # .y file from huia language implementation
267
+
268
+ def test_huia
269
+ assert_compile 'huia.y'
270
+ assert_debugfile 'huia.y', [285, 0, 0, 0]
271
+ assert_output_unchanged 'huia.y'
272
+ end
273
+
274
+ # .y files from rdtool gem
275
+
276
+ def test_rdtool
277
+ assert_compile 'rdblockparser.y'
278
+ assert_compile 'rdinlineparser.y'
279
+ assert_debugfile 'rdblockparser.y', [0, 0, 0, 0]
280
+ assert_debugfile 'rdinlineparser.y', [0, 0, 0, 0]
281
+ assert_output_unchanged 'rdblockparser.y'
282
+ assert_output_unchanged 'rdinlineparser.y'
283
+ end
284
+
285
+ # .y file from cast gem
286
+
287
+ def test_cast
288
+ assert_compile 'cast.y'
289
+ assert_debugfile 'cast.y', [0, 0, 0, 0, 1]
290
+ assert_output_unchanged 'cast.y'
291
+ end
292
+
293
+ # .y file from cadenza gem
294
+
295
+ def test_cadenza
296
+ assert_compile 'cadenza.y'
297
+ assert_debugfile 'cadenza.y', [0, 0, 0, 0, 37]
298
+ assert_output_unchanged 'cadenza.y'
299
+ end
300
+
301
+ # .y file from mediacloth gem
302
+
303
+ def test_mediacloth
304
+ assert_compile 'mediacloth.y'
305
+ assert_debugfile 'mediacloth.y', [0, 0, 0, 0]
306
+ assert_output_unchanged 'mediacloth.y'
307
+ end
308
+
309
+ # .y file from twowaysql gem
310
+
311
+ def test_twowaysql
312
+ assert_compile 'twowaysql.y'
313
+ assert_debugfile 'twowaysql.y', [4, 0, 0, 0]
314
+ assert_output_unchanged 'twowaysql.y'
315
+ end
316
+
317
+ # .y file from machete gem
318
+
319
+ def test_machete
320
+ assert_compile 'machete.y'
321
+ assert_debugfile 'machete.y', [0, 0, 0, 0]
322
+ assert_output_unchanged 'machete.y'
323
+ end
324
+
325
+ # .y file from mof gem
326
+
327
+ def test_mof
328
+ assert_compile 'mof.y'
329
+ assert_debugfile 'mof.y', [7, 4, 0, 0]
330
+ assert_output_unchanged 'mof.y'
331
+ end
332
+
333
+ # .y file from tp_plus gem
334
+
335
+ def test_tp_plus
336
+ assert_compile 'tp_plus.y'
337
+ assert_debugfile 'tp_plus.y', [21, 0, 0, 0]
338
+ assert_output_unchanged 'tp_plus.y'
339
+ end
163
340
  end
164
341
  end
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.14
4
+ version: 1.4.15
5
5
  platform: java
6
6
  authors:
7
7
  - Aaron Patterson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rdoc
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - "~>"
16
+ - - ">="
23
17
  - !ruby/object:Gem::Version
24
- version: '4.0'
18
+ version: 0.4.1
19
+ name: rake-compiler
25
20
  prerelease: false
26
21
  type: :development
27
- - !ruby/object:Gem::Dependency
28
- name: rake-compiler
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
24
  - - ">="
32
25
  - !ruby/object:Gem::Version
33
26
  version: 0.4.1
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - ">="
30
+ - - "~>"
37
31
  - !ruby/object:Gem::Version
38
- version: 0.4.1
32
+ version: '4.7'
33
+ name: minitest
39
34
  prerelease: false
40
35
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
38
  - - "~>"
46
39
  - !ruby/object:Gem::Version
47
40
  version: '4.7'
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
- - - "~>"
44
+ - - ">="
51
45
  - !ruby/object:Gem::Version
52
- version: '4.7'
46
+ version: '4.0'
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: '7'
50
+ name: rdoc
53
51
  prerelease: false
54
52
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: hoe
57
53
  version_requirements: !ruby/object:Gem::Requirement
58
54
  requirements:
59
- - - "~>"
55
+ - - ">="
60
56
  - !ruby/object:Gem::Version
61
- version: '3.13'
57
+ version: '4.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '7'
61
+ - !ruby/object:Gem::Dependency
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '3.13'
66
+ version: '3.17'
67
+ name: hoe
67
68
  prerelease: false
68
69
  type: :development
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.17'
69
75
  description: |-
70
76
  Racc is a LALR(1) parser generator.
71
77
  It is written in Ruby itself, and generates Ruby program.
@@ -91,7 +97,6 @@ extra_rdoc_files:
91
97
  - rdoc/ja/grammar.ja.rdoc
92
98
  - rdoc/ja/parser.ja.rdoc
93
99
  files:
94
- - ".gemtest"
95
100
  - COPYING
96
101
  - ChangeLog
97
102
  - DEPENDS
@@ -151,36 +156,86 @@ files:
151
156
  - setup.rb
152
157
  - tasks/doc.rb
153
158
  - tasks/email.rb
159
+ - test/assets/bibtex.y
160
+ - test/assets/cadenza.y
161
+ - test/assets/cast.y
154
162
  - test/assets/chk.y
155
163
  - test/assets/conf.y
164
+ - test/assets/csspool.y
156
165
  - test/assets/digraph.y
157
166
  - test/assets/echk.y
167
+ - test/assets/edtf.y
158
168
  - test/assets/err.y
159
169
  - test/assets/error_recovery.y
160
170
  - test/assets/expect.y
161
171
  - test/assets/firstline.y
172
+ - test/assets/huia.y
162
173
  - test/assets/ichk.y
163
174
  - test/assets/intp.y
175
+ - test/assets/journey.y
176
+ - test/assets/liquor.y
177
+ - test/assets/machete.y
178
+ - test/assets/macruby.y
164
179
  - test/assets/mailp.y
180
+ - test/assets/mediacloth.y
181
+ - test/assets/mof.y
182
+ - test/assets/namae.y
183
+ - test/assets/nasl.y
165
184
  - test/assets/newsyn.y
166
185
  - test/assets/noend.y
186
+ - test/assets/nokogiri-css.y
167
187
  - test/assets/nonass.y
168
188
  - test/assets/normal.y
169
189
  - test/assets/norule.y
170
190
  - test/assets/nullbug1.y
171
191
  - test/assets/nullbug2.y
192
+ - test/assets/opal.y
172
193
  - test/assets/opt.y
173
194
  - test/assets/percent.y
195
+ - test/assets/php_serialization.y
196
+ - test/assets/rdblockparser.y
197
+ - test/assets/rdinlineparser.y
174
198
  - test/assets/recv.y
199
+ - test/assets/riml.y
175
200
  - test/assets/rrconf.y
201
+ - test/assets/ruby18.y
202
+ - test/assets/ruby19.y
203
+ - test/assets/ruby20.y
204
+ - test/assets/ruby21.y
205
+ - test/assets/ruby22.y
176
206
  - test/assets/scan.y
177
207
  - test/assets/syntax.y
208
+ - test/assets/tp_plus.y
209
+ - test/assets/twowaysql.y
178
210
  - test/assets/unterm.y
179
211
  - test/assets/useless.y
180
212
  - test/assets/yyerr.y
181
213
  - test/bench.y
182
214
  - test/helper.rb
183
215
  - test/infini.y
216
+ - test/regress/bibtex
217
+ - test/regress/cadenza
218
+ - test/regress/cast
219
+ - test/regress/csspool
220
+ - test/regress/edtf
221
+ - test/regress/huia
222
+ - test/regress/journey
223
+ - test/regress/liquor
224
+ - test/regress/machete
225
+ - test/regress/mediacloth
226
+ - test/regress/mof
227
+ - test/regress/namae
228
+ - test/regress/nasl
229
+ - test/regress/nokogiri-css
230
+ - test/regress/opal
231
+ - test/regress/php_serialization
232
+ - test/regress/rdblockparser
233
+ - test/regress/rdinlineparser
234
+ - test/regress/riml
235
+ - test/regress/ruby18
236
+ - test/regress/ruby22
237
+ - test/regress/tp_plus
238
+ - test/regress/twowaysql
184
239
  - test/scandata/brace
185
240
  - test/scandata/gvar
186
241
  - test/scandata/normal
@@ -217,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
272
  version: '0'
218
273
  requirements: []
219
274
  rubyforge_project:
220
- rubygems_version: 2.4.8
275
+ rubygems_version: 2.7.6
221
276
  signing_key:
222
277
  specification_version: 4
223
278
  summary: Racc is a LALR(1) parser generator
data/.gemtest DELETED
File without changes