racc 1.4.14 → 1.4.15-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Manifest.txt +50 -0
- data/ext/racc/com/headius/racc/Cparse.java +66 -23
- data/ext/racc/cparse.c +1 -1
- data/ext/racc/depend +1 -1
- data/lib/racc/cparse-jruby.jar +0 -0
- data/lib/racc/info.rb +2 -2
- data/test/assets/bibtex.y +141 -0
- data/test/assets/cadenza.y +170 -0
- data/test/assets/cast.y +926 -0
- data/test/assets/csspool.y +729 -0
- data/test/assets/edtf.y +583 -0
- data/test/assets/huia.y +318 -0
- data/test/assets/journey.y +47 -0
- data/test/assets/liquor.y +313 -0
- data/test/assets/machete.y +423 -0
- data/test/assets/macruby.y +2197 -0
- data/test/assets/mediacloth.y +599 -0
- data/test/assets/mof.y +649 -0
- data/test/assets/namae.y +302 -0
- data/test/assets/nasl.y +626 -0
- data/test/assets/nokogiri-css.y +255 -0
- data/test/assets/opal.y +1807 -0
- data/test/assets/php_serialization.y +98 -0
- data/test/assets/rdblockparser.y +576 -0
- data/test/assets/rdinlineparser.y +561 -0
- data/test/assets/riml.y +665 -0
- data/test/assets/ruby18.y +1943 -0
- data/test/assets/ruby19.y +2174 -0
- data/test/assets/ruby20.y +2350 -0
- data/test/assets/ruby21.y +2359 -0
- data/test/assets/ruby22.y +2381 -0
- data/test/assets/tp_plus.y +622 -0
- data/test/assets/twowaysql.y +278 -0
- data/test/helper.rb +50 -34
- data/test/regress/bibtex +474 -0
- data/test/regress/cadenza +796 -0
- data/test/regress/cast +3425 -0
- data/test/regress/csspool +2318 -0
- data/test/regress/edtf +1794 -0
- data/test/regress/huia +1392 -0
- data/test/regress/journey +222 -0
- data/test/regress/liquor +885 -0
- data/test/regress/machete +833 -0
- data/test/regress/mediacloth +1463 -0
- data/test/regress/mof +1368 -0
- data/test/regress/namae +634 -0
- data/test/regress/nasl +2058 -0
- data/test/regress/nokogiri-css +836 -0
- data/test/regress/opal +6429 -0
- data/test/regress/php_serialization +336 -0
- data/test/regress/rdblockparser +1061 -0
- data/test/regress/rdinlineparser +1243 -0
- data/test/regress/riml +3297 -0
- data/test/regress/ruby18 +6351 -0
- data/test/regress/ruby22 +7456 -0
- data/test/regress/tp_plus +1933 -0
- data/test/regress/twowaysql +556 -0
- data/test/test_racc_command.rb +177 -0
- metadata +88 -32
data/test/test_racc_command.rb
CHANGED
@@ -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.
|
5
|
-
platform:
|
4
|
+
version: 1.4.15
|
5
|
+
platform: java
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: rdoc
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake-compiler
|
29
14
|
requirement: !ruby/object:Gem::Requirement
|
30
15
|
requirements:
|
31
16
|
- - ">="
|
32
17
|
- !ruby/object:Gem::Version
|
33
18
|
version: 0.4.1
|
34
|
-
|
19
|
+
name: rake-compiler
|
35
20
|
prerelease: false
|
21
|
+
type: :development
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - ">="
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: 0.4.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
44
29
|
requirements:
|
45
30
|
- - "~>"
|
46
31
|
- !ruby/object:Gem::Version
|
47
32
|
version: '4.7'
|
48
|
-
|
33
|
+
name: minitest
|
49
34
|
prerelease: false
|
35
|
+
type: :development
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '4.7'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: hoe
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
58
43
|
requirements:
|
59
|
-
- - "
|
44
|
+
- - ">="
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
46
|
+
version: '4.0'
|
47
|
+
- - "<"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '7'
|
50
|
+
name: rdoc
|
51
|
+
prerelease: false
|
62
52
|
type: :development
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '4.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '7'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.17'
|
67
|
+
name: hoe
|
63
68
|
prerelease: false
|
69
|
+
type: :development
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
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.
|
@@ -79,8 +85,7 @@ executables:
|
|
79
85
|
- racc
|
80
86
|
- racc2y
|
81
87
|
- y2racc
|
82
|
-
extensions:
|
83
|
-
- ext/racc/extconf.rb
|
88
|
+
extensions: []
|
84
89
|
extra_rdoc_files:
|
85
90
|
- Manifest.txt
|
86
91
|
- README.ja.rdoc
|
@@ -112,6 +117,7 @@ files:
|
|
112
117
|
- fastcache/fastcache.c
|
113
118
|
- lib/racc.rb
|
114
119
|
- lib/racc/compat.rb
|
120
|
+
- lib/racc/cparse-jruby.jar
|
115
121
|
- lib/racc/debugflags.rb
|
116
122
|
- lib/racc/exception.rb
|
117
123
|
- lib/racc/grammar.rb
|
@@ -150,36 +156,86 @@ files:
|
|
150
156
|
- setup.rb
|
151
157
|
- tasks/doc.rb
|
152
158
|
- tasks/email.rb
|
159
|
+
- test/assets/bibtex.y
|
160
|
+
- test/assets/cadenza.y
|
161
|
+
- test/assets/cast.y
|
153
162
|
- test/assets/chk.y
|
154
163
|
- test/assets/conf.y
|
164
|
+
- test/assets/csspool.y
|
155
165
|
- test/assets/digraph.y
|
156
166
|
- test/assets/echk.y
|
167
|
+
- test/assets/edtf.y
|
157
168
|
- test/assets/err.y
|
158
169
|
- test/assets/error_recovery.y
|
159
170
|
- test/assets/expect.y
|
160
171
|
- test/assets/firstline.y
|
172
|
+
- test/assets/huia.y
|
161
173
|
- test/assets/ichk.y
|
162
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
|
163
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
|
164
184
|
- test/assets/newsyn.y
|
165
185
|
- test/assets/noend.y
|
186
|
+
- test/assets/nokogiri-css.y
|
166
187
|
- test/assets/nonass.y
|
167
188
|
- test/assets/normal.y
|
168
189
|
- test/assets/norule.y
|
169
190
|
- test/assets/nullbug1.y
|
170
191
|
- test/assets/nullbug2.y
|
192
|
+
- test/assets/opal.y
|
171
193
|
- test/assets/opt.y
|
172
194
|
- test/assets/percent.y
|
195
|
+
- test/assets/php_serialization.y
|
196
|
+
- test/assets/rdblockparser.y
|
197
|
+
- test/assets/rdinlineparser.y
|
173
198
|
- test/assets/recv.y
|
199
|
+
- test/assets/riml.y
|
174
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
|
175
206
|
- test/assets/scan.y
|
176
207
|
- test/assets/syntax.y
|
208
|
+
- test/assets/tp_plus.y
|
209
|
+
- test/assets/twowaysql.y
|
177
210
|
- test/assets/unterm.y
|
178
211
|
- test/assets/useless.y
|
179
212
|
- test/assets/yyerr.y
|
180
213
|
- test/bench.y
|
181
214
|
- test/helper.rb
|
182
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
|
183
239
|
- test/scandata/brace
|
184
240
|
- test/scandata/gvar
|
185
241
|
- test/scandata/normal
|
@@ -198,7 +254,7 @@ homepage: http://i.loveruby.net/en/projects/racc/
|
|
198
254
|
licenses:
|
199
255
|
- MIT
|
200
256
|
metadata: {}
|
201
|
-
post_install_message:
|
257
|
+
post_install_message:
|
202
258
|
rdoc_options:
|
203
259
|
- "--main"
|
204
260
|
- README.rdoc
|
@@ -215,9 +271,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
271
|
- !ruby/object:Gem::Version
|
216
272
|
version: '0'
|
217
273
|
requirements: []
|
218
|
-
rubyforge_project:
|
219
|
-
rubygems_version: 2.
|
220
|
-
signing_key:
|
274
|
+
rubyforge_project:
|
275
|
+
rubygems_version: 2.7.6
|
276
|
+
signing_key:
|
221
277
|
specification_version: 4
|
222
278
|
summary: Racc is a LALR(1) parser generator
|
223
279
|
test_files: []
|