racc 1.5.0-java → 1.5.1-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.
- checksums.yaml +4 -4
- data/README.rdoc +2 -4
- data/bin/racc +34 -17
- data/ext/racc/cparse/cparse.c +15 -17
- data/lib/racc/compat.rb +2 -3
- data/lib/racc/debugflags.rb +2 -3
- data/lib/racc/grammar.rb +18 -16
- data/lib/racc/grammarfileparser.rb +3 -4
- data/lib/racc/info.rb +1 -1
- data/lib/racc/iset.rb +2 -3
- data/lib/racc/logfilegenerator.rb +2 -3
- data/lib/racc/parser-text.rb +4 -4
- data/lib/racc/parser.rb +4 -4
- data/lib/racc/parserfilegenerator.rb +0 -1
- data/lib/racc/sourcetext.rb +2 -3
- data/lib/racc/statetransitiontable.rb +3 -4
- data/test/helper.rb +3 -3
- data/test/regress/cadenza +95 -95
- data/test/regress/cast +465 -462
- data/test/regress/csspool +196 -200
- data/test/regress/edtf +223 -223
- data/test/regress/huia +144 -144
- data/test/regress/journey +1 -1
- data/test/regress/liquor +109 -109
- data/test/regress/machete +24 -24
- data/test/regress/mediacloth +227 -227
- data/test/regress/mof +93 -93
- data/test/regress/namae +35 -35
- data/test/regress/nasl +310 -310
- data/test/regress/nokogiri-css +62 -62
- data/test/regress/opal +1762 -1760
- data/test/regress/php_serialization +18 -18
- data/test/regress/riml +576 -590
- data/test/regress/ruby18 +1135 -1142
- data/test/regress/ruby22 +1793 -1789
- data/test/regress/tp_plus +215 -215
- data/test/regress/twowaysql +21 -21
- data/test/test_racc_command.rb +17 -0
- metadata +4 -3
data/test/regress/twowaysql
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.
|
3
|
+
# This file is automatically generated by Racc 1.5.0
|
4
4
|
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
@@ -145,34 +145,34 @@ end
|
|
145
145
|
|
146
146
|
racc_action_table = [
|
147
147
|
8, 36, 9, 37, 12, 13, 10, 11, 14, 15,
|
148
|
-
16, 17, 18, 19, 22, 23, 24, 8,
|
149
|
-
|
150
|
-
19, 22, 23, 24, 8,
|
148
|
+
16, 17, 18, 19, 22, 23, 24, 8, 38, 9,
|
149
|
+
3, 12, 13, 10, 11, 14, 15, 16, 17, 18,
|
150
|
+
19, 22, 23, 24, 8, 25, 9, 40, 12, 13,
|
151
151
|
10, 11, 14, 15, 16, 17, 18, 19, 22, 23,
|
152
|
-
24, 8,
|
152
|
+
24, 8, 45, 9, 46, 12, 13, 10, 11, 14,
|
153
153
|
15, 16, 17, 18, 19, 22, 23, 24, 8, nil,
|
154
154
|
9, nil, 12, 13, 10, 11, 14, 15, 16, 17,
|
155
|
-
18, 19, 22, 23, 24, 35, 33, 34,
|
156
|
-
|
155
|
+
18, 19, 22, 23, 24, 35, 33, 34, 31, 32,
|
156
|
+
44, 43, 31, 32 ]
|
157
157
|
|
158
158
|
racc_action_check = [
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
159
|
+
2, 24, 2, 24, 2, 2, 2, 2, 2, 2,
|
160
|
+
2, 2, 2, 2, 2, 2, 2, 26, 26, 26,
|
161
|
+
1, 26, 26, 26, 26, 26, 26, 26, 26, 26,
|
162
|
+
26, 26, 26, 26, 27, 3, 27, 28, 27, 27,
|
163
|
+
27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
|
164
|
+
27, 41, 37, 41, 39, 41, 41, 41, 41, 41,
|
165
|
+
41, 41, 41, 41, 41, 41, 41, 41, 42, nil,
|
166
|
+
42, nil, 42, 42, 42, 42, 42, 42, 42, 42,
|
167
|
+
42, 42, 42, 42, 42, 22, 22, 22, 9, 9,
|
168
|
+
34, 34, 40, 40 ]
|
169
169
|
|
170
170
|
racc_action_pointer = [
|
171
|
-
nil,
|
171
|
+
nil, 20, -2, 35, nil, nil, nil, nil, nil, 82,
|
172
172
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
173
|
-
nil, nil, 77, nil, -7, nil,
|
174
|
-
nil, nil, nil, nil,
|
175
|
-
86,
|
173
|
+
nil, nil, 77, nil, -7, nil, 15, 32, 32, nil,
|
174
|
+
nil, nil, nil, nil, 82, nil, nil, 44, nil, 51,
|
175
|
+
86, 49, 66, nil, nil, nil, nil, nil ]
|
176
176
|
|
177
177
|
racc_action_default = [
|
178
178
|
-2, -35, -1, -35, -3, -4, -5, -6, -2, -2,
|
data/test/test_racc_command.rb
CHANGED
@@ -318,5 +318,22 @@ module Racc
|
|
318
318
|
assert_debugfile 'tp_plus.y', [21, 0, 0, 0]
|
319
319
|
assert_output_unchanged 'tp_plus.y'
|
320
320
|
end
|
321
|
+
|
322
|
+
def test_ifelse
|
323
|
+
omit if RUBY_PLATFORM =~ /java/
|
324
|
+
|
325
|
+
stderr = nil
|
326
|
+
racc "-o#{@TAB_DIR}/ifelse", "#{ASSET_DIR}/ifelse.y", stdout_filter: ->(s) { stderr = s }
|
327
|
+
stderr = stderr.lines[1..-1].join if RUBY_PLATFORM.match?(/java/)
|
328
|
+
assert_equal(<<~STDERR, stderr)
|
329
|
+
1 useless nonterminals:
|
330
|
+
dummy
|
331
|
+
2 useless rules:
|
332
|
+
#4 (dummy)
|
333
|
+
#5 (dummy)
|
334
|
+
1 shift/reduce conflicts
|
335
|
+
Turn on logging with "-v" and check ".output" file for details
|
336
|
+
STDERR
|
337
|
+
end
|
321
338
|
end
|
322
339
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |
|
15
15
|
Racc is a LALR(1) parser generator.
|
@@ -172,7 +172,8 @@ files:
|
|
172
172
|
- web/racc.ja.rhtml
|
173
173
|
homepage: http://i.loveruby.net/en/projects/racc/
|
174
174
|
licenses:
|
175
|
-
-
|
175
|
+
- Ruby
|
176
|
+
- BSD-2-Clause
|
176
177
|
metadata: {}
|
177
178
|
post_install_message:
|
178
179
|
rdoc_options:
|