racc 1.6.0-java → 1.6.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3870d075a9f783d53a800b73c19cb82f6be0c31ee8b222524dae4c1920ed80b
4
- data.tar.gz: 1d6632a8e5856c6b3fb202c91e3978bf08d4cc53ad3fd3fedad81379fee5b85b
3
+ metadata.gz: 652c8b3b6b59a4ac9bd82ec1d220d003eb54dff7520bbc0bb8f311551db12da1
4
+ data.tar.gz: 3e92fc229c3e4e6f3e4b741ae7dd543289b09df69ac55bd466f9402082383c45
5
5
  SHA512:
6
- metadata.gz: fca0a358c6b77e13fbcbf403028fe5f21fbc3f9faf6c9ed6a1e00f54a5dbac1c9b488940f89ae6382ce8bcff23977850f8ca7983168a0d63a2ad96b0d55d101e
7
- data.tar.gz: 9a70f05c829d84a665fe51efa715874350daa1a0c9e3a6acd5c1a81977818af18b8b7c92e911a25adc8c21a8b85fcaaf736a9fba92d34160313a7539aecbe01f
6
+ metadata.gz: f4c04141732874928d82fe5f74d5b4156a4e88016073ca8cc28c19d633e354350779d206888a8a56c8d67070d3d37dd601891965f2bd75b2842747c39bd247b4
7
+ data.tar.gz: 4a95e53d7811f50f57af4b5f56113f637a4fca5c9d1b68d16e02ab1940c8faad90883ba1ba75779550a18b117a78cc0bbef634f31b613012a4fa7a806328ba2a
data/README.rdoc CHANGED
@@ -1,20 +1,15 @@
1
1
  = Racc
2
2
 
3
- * http://i.loveruby.net/en/projects/racc/
3
+ * https://github.com/ruby/racc
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
7
  Racc is a LALR(1) parser generator.
8
8
  It is written in Ruby itself, and generates Ruby program.
9
9
 
10
- NOTE: Ruby 1.8.x comes with Racc runtime module. You
11
- can run your parsers generated by racc 1.4.x out of the
12
- box.
13
-
14
-
15
10
  == Requirement
16
11
 
17
- * Ruby 1.8.x or later.
12
+ * Ruby 2.5 or later.
18
13
 
19
14
  == Installation
20
15
 
@@ -59,7 +54,7 @@
59
54
  $ ruby calc
60
55
 
61
56
  ... Does it work?
62
- For details of Racc, see HTML documents placed under 'rdoc/en/'
57
+ For details of Racc, see HTML documents placed under 'doc/en/'
63
58
  and sample grammar files under 'sample/'.
64
59
 
65
60
 
@@ -74,7 +69,8 @@
74
69
  == Bug Reports
75
70
 
76
71
  Any kind of bug report is welcome.
77
- If you find a bug of Racc, please email me. Your grammar file,
72
+ If you find a bug of Racc, please report an issue at
73
+ https://github.com/ruby/racc/issues. Your grammar file,
78
74
  debug output generated by "racc -g", are helpful.
79
75
 
80
76
 
@@ -7,8 +7,6 @@
7
7
  This library is free software.
8
8
  You can distribute/modify this program under the same terms of ruby.
9
9
 
10
- $originalId: cparse.c,v 1.8 2006/07/06 11:39:46 aamine Exp $
11
-
12
10
  */
13
11
 
14
12
  #include <ruby.h>
@@ -24,7 +22,7 @@
24
22
  Important Constants
25
23
  ----------------------------------------------------------------------- */
26
24
 
27
- #define RACC_VERSION "1.4.15"
25
+ #define RACC_VERSION "1.6.2"
28
26
 
29
27
  #define DEFAULT_TOKEN -1
30
28
  #define ERROR_TOKEN 1
Binary file
data/lib/racc/grammar.rb CHANGED
@@ -335,14 +335,14 @@ module Racc
335
335
  if action
336
336
  idbase = "#{type}@#{id}-#{@seqs[type] += 1}"
337
337
  target = _wrap(idbase, "#{idbase}-core", action)
338
- _regist("#{idbase}-core", &block)
338
+ _register("#{idbase}-core", &block)
339
339
  else
340
- target = _regist("#{type}@#{id}", &block)
340
+ target = _register("#{type}@#{id}", &block)
341
341
  end
342
342
  @grammar.intern(target)
343
343
  end
344
344
 
345
- def _regist(target_name)
345
+ def _register(target_name)
346
346
  target = target_name.intern
347
347
  unless _added?(@grammar.intern(target))
348
348
  yield(target).each_rule do |rule|
@@ -260,9 +260,9 @@ module Racc
260
260
  _, *blocks = *@scanner.epilogue.split(/^----/)
261
261
  blocks.each do |block|
262
262
  header, *body = block.lines.to_a
263
- label0, pathes = *header.sub(/\A-+/, '').split('=', 2)
263
+ label0, paths = *header.sub(/\A-+/, '').split('=', 2)
264
264
  label = canonical_label(label0)
265
- (pathes ? pathes.strip.split(' ') : []).each do |path|
265
+ (paths ? paths.strip.split(' ') : []).each do |path|
266
266
  add_user_code label, SourceText.new(File.read(path), path, 1)
267
267
  end
268
268
  add_user_code label, SourceText.new(body.join(''), @filename, line + 1)
data/lib/racc/info.rb CHANGED
@@ -11,7 +11,7 @@
11
11
  #++
12
12
 
13
13
  module Racc
14
- VERSION = '1.6.0'
14
+ VERSION = '1.6.2'
15
15
  Version = VERSION
16
16
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
17
17
  end
@@ -22,7 +22,7 @@ module Racc
22
22
  class ParseError < StandardError; end
23
23
  end
24
24
  unless defined?(::ParseError)
25
- ParseError = Racc::ParseError
25
+ ParseError = Racc::ParseError # :nodoc:
26
26
  end
27
27
 
28
28
  # Racc is a LALR(1) parser generator.
data/lib/racc/parser.rb CHANGED
@@ -20,7 +20,7 @@ module Racc
20
20
  class ParseError < StandardError; end
21
21
  end
22
22
  unless defined?(::ParseError)
23
- ParseError = Racc::ParseError
23
+ ParseError = Racc::ParseError # :nodoc:
24
24
  end
25
25
 
26
26
  # Racc is a LALR(1) parser generator.
@@ -216,7 +216,7 @@ module Racc
216
216
  end
217
217
  i = ii
218
218
  end
219
- Regexp.compile(map, 'n')
219
+ Regexp.compile(map, Regexp::NOENCODING)
220
220
  end
221
221
 
222
222
  def set_table(entries, dummy, tbl, chk, ptr)
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.6.0
4
+ version: 1.6.2
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: 2021-10-19 00:00:00.000000000 Z
12
+ date: 2022-12-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
15
  Racc is a LALR(1) parser generator.
@@ -64,7 +64,7 @@ files:
64
64
  - lib/racc/state.rb
65
65
  - lib/racc/statetransitiontable.rb
66
66
  - lib/racc/static.rb
67
- homepage: https://i.loveruby.net/en/projects/racc/
67
+ homepage: https://github.com/ruby/racc
68
68
  licenses:
69
69
  - Ruby
70
70
  - BSD-2-Clause
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.2.29
89
+ rubygems_version: 3.3.25
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Racc is a LALR(1) parser generator