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.
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16
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, 3, 9,
149
- 25, 12, 13, 10, 11, 14, 15, 16, 17, 18,
150
- 19, 22, 23, 24, 8, 38, 9, 46, 12, 13,
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, 40, 9, 45, 12, 13, 10, 11, 14,
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, 44, 43,
156
- 31, 32, 31, 32 ]
155
+ 18, 19, 22, 23, 24, 35, 33, 34, 31, 32,
156
+ 44, 43, 31, 32 ]
157
157
 
158
158
  racc_action_check = [
159
- 42, 24, 42, 24, 42, 42, 42, 42, 42, 42,
160
- 42, 42, 42, 42, 42, 42, 42, 2, 1, 2,
161
- 3, 2, 2, 2, 2, 2, 2, 2, 2, 2,
162
- 2, 2, 2, 2, 26, 26, 26, 39, 26, 26,
163
- 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
164
- 26, 27, 28, 27, 37, 27, 27, 27, 27, 27,
165
- 27, 27, 27, 27, 27, 27, 27, 27, 41, nil,
166
- 41, nil, 41, 41, 41, 41, 41, 41, 41, 41,
167
- 41, 41, 41, 41, 41, 22, 22, 22, 34, 34,
168
- 9, 9, 40, 40 ]
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, 18, 15, 20, nil, nil, nil, nil, nil, 84,
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, 32, 49, 47, nil,
174
- nil, nil, nil, nil, 80, nil, nil, 46, nil, 34,
175
- 86, 66, -2, nil, nil, nil, nil, nil ]
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,
@@ -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.0
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-03-25 00:00:00.000000000 Z
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
- - MIT
175
+ - Ruby
176
+ - BSD-2-Clause
176
177
  metadata: {}
177
178
  post_install_message:
178
179
  rdoc_options: