racc 1.8.0-java → 1.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2842e5b157a3fd2dfacea0fde16adfa164036485691e65117fdbbb5ec89cad8
4
- data.tar.gz: e4c9cd87e94cc53bc14e75fb84a6e5181ffee46ae4f4bb16cf0b81e120a565fe
3
+ metadata.gz: 3f81027e59aab934bcb1b2644e43010745823b7b23ddcb55e0297bfef28e091d
4
+ data.tar.gz: adb0448c22bb22b05d86b284fdc48c939c2f59e380bda254901b46d7a3373454
5
5
  SHA512:
6
- metadata.gz: 43dc4f2ce3dafe240bbfa27c947fea6263067cc22def77986e3ef1d8b654fa536c6a2a1cdbed6122fddf880390f2628977d735116572e4be80acdb8dd60403cf
7
- data.tar.gz: fdbf7945d3da18cd783bb657dd88f5b40494b77d650063485aa4d92719205735c2decd7a443ba4f44af9efd17e36ca77f348521a624e76c3ddfaca7f567995e1
6
+ metadata.gz: d2d57b61c0e86bc0ad97bd06d72c89344d07f3172b44b0dfb4a222fa3da2b8519e931930be5faec182298fa9ebc49a1417fd82b3a7559bc4c005e58c4ded552e
7
+ data.tar.gz: 91fa16f2817bc02632241fa1b356e1daae0aa2cad79d8b0b0a2c71d6eab116c0614555232e26ee755e14789ae4a8e9d5ba92388ec9fe8df22ca798d6d856946c
data/BSDL ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.
data/COPYING CHANGED
@@ -1,22 +1,56 @@
1
- Copyright (C) 2019 Yukihiro Matsumoto. All rights reserved.
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions
5
- are met:
6
- 1. Redistributions of source code must retain the above copyright
7
- notice, this list of conditions and the following disclaimer.
8
- 2. Redistributions in binary form must reproduce the above copyright
9
- notice, this list of conditions and the following disclaimer in the
10
- documentation and/or other materials provided with the distribution.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
- ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
- SUCH DAMAGE.
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file BSDL), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a. place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b. use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c. give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d. make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a. distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b. accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c. give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d. make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Racc is a LALR(1) parser generator.
7
+ Racc is an LALR(1) parser generator.
8
8
  It is written in Ruby itself, and generates Ruby program.
9
9
 
10
10
  == Requirement
Binary file
data/lib/racc/grammar.rb CHANGED
@@ -10,11 +10,11 @@
10
10
  #
11
11
  #++
12
12
 
13
- require 'racc/compat'
14
- require 'racc/iset'
15
- require 'racc/sourcetext'
16
- require 'racc/logfilegenerator'
17
- require 'racc/exception'
13
+ require_relative 'compat'
14
+ require_relative 'iset'
15
+ require_relative 'sourcetext'
16
+ require_relative 'logfilegenerator'
17
+ require_relative 'exception'
18
18
  require 'forwardable'
19
19
 
20
20
  module Racc
@@ -10,11 +10,11 @@
10
10
  #
11
11
  #++
12
12
 
13
- require 'racc'
14
- require 'racc/compat'
15
- require 'racc/grammar'
16
- require 'racc/parserfilegenerator'
17
- require 'racc/sourcetext'
13
+ require_relative '../racc'
14
+ require_relative 'compat'
15
+ require_relative 'grammar'
16
+ require_relative 'parserfilegenerator'
17
+ require_relative 'sourcetext'
18
18
  require 'stringio'
19
19
 
20
20
  module Racc
@@ -295,7 +295,7 @@ module Racc
295
295
  return target if target
296
296
  target = _gen_target_name("many", prev)
297
297
  @many_rule_registry[prev.to_s] = target
298
- src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", __FILE__, __LINE__)
298
+ src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", @filename, @scanner.lineno + 1)
299
299
  act = UserAction.source_text(src)
300
300
  @grammar.add Rule.new(target, [], act)
301
301
  @grammar.add Rule.new(target, [prev, target], act)
@@ -308,7 +308,7 @@ module Racc
308
308
  return target if target
309
309
  target = _gen_target_name("many1", prev)
310
310
  @many1_rule_registry[prev.to_s] = target
311
- src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", __FILE__, __LINE__)
311
+ src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", @filename, @scanner.lineno + 1)
312
312
  act = UserAction.source_text(src)
313
313
  @grammar.add Rule.new(target, [prev], act)
314
314
  @grammar.add Rule.new(target, [prev, target], act)
@@ -323,7 +323,7 @@ module Racc
323
323
  unless target = @group_rule_registry[target_name]
324
324
  target = @grammar.intern("-group@#{target_name}", true)
325
325
  @group_rule_registry[target_name] = target
326
- src = SourceText.new("result = val", __FILE__, __LINE__)
326
+ src = SourceText.new("result = val", @filename, @scanner.lineno + 1)
327
327
  act = UserAction.source_text(src)
328
328
  rules.each do |syms, sprec|
329
329
  rule = Rule.new(target, syms, act)
data/lib/racc/info.rb CHANGED
@@ -12,7 +12,7 @@
12
12
  #++
13
13
 
14
14
  module Racc
15
- VERSION = '1.8.0'
15
+ VERSION = '1.8.1'
16
16
  Version = VERSION
17
17
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
18
18
  end
@@ -15,7 +15,7 @@ unless $".find {|p| p.end_with?('/racc/info.rb')}
15
15
  $".push "#{__dir__}/racc/info.rb"
16
16
 
17
17
  module Racc
18
- VERSION = '1.8.0'
18
+ VERSION = '1.8.1'
19
19
  Version = VERSION
20
20
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
21
21
  end
@@ -30,7 +30,7 @@ unless defined?(::ParseError)
30
30
  ParseError = Racc::ParseError # :nodoc:
31
31
  end
32
32
 
33
- # Racc is a LALR(1) parser generator.
33
+ # Racc is an LALR(1) parser generator.
34
34
  # It is written in Ruby itself, and generates Ruby programs.
35
35
  #
36
36
  # == Command-line Reference
data/lib/racc/parser.rb CHANGED
@@ -19,7 +19,7 @@ unless defined?(::ParseError)
19
19
  ParseError = Racc::ParseError # :nodoc:
20
20
  end
21
21
 
22
- # Racc is a LALR(1) parser generator.
22
+ # Racc is an LALR(1) parser generator.
23
23
  # It is written in Ruby itself, and generates Ruby programs.
24
24
  #
25
25
  # == Command-line Reference
@@ -10,9 +10,9 @@
10
10
  #
11
11
  #++
12
12
 
13
- require 'racc/compat'
14
- require 'racc/sourcetext'
15
- require 'racc/parser-text'
13
+ require_relative 'compat'
14
+ require_relative 'sourcetext'
15
+ require_relative 'parser-text'
16
16
  require 'rbconfig'
17
17
 
18
18
  module Racc
data/lib/racc/state.rb CHANGED
@@ -10,9 +10,9 @@
10
10
  #
11
11
  #++
12
12
 
13
- require 'racc/iset'
14
- require 'racc/statetransitiontable'
15
- require 'racc/exception'
13
+ require_relative 'iset'
14
+ require_relative 'statetransitiontable'
15
+ require_relative 'exception'
16
16
  require 'forwardable'
17
17
 
18
18
  module Racc
@@ -10,7 +10,7 @@
10
10
  #
11
11
  #++
12
12
 
13
- require 'racc/parser'
13
+ require_relative 'parser'
14
14
 
15
15
  module Racc
16
16
 
data/lib/racc/static.rb CHANGED
@@ -1,5 +1,5 @@
1
- require 'racc'
2
- require 'racc/parser'
3
- require 'racc/grammarfileparser'
4
- require 'racc/parserfilegenerator'
5
- require 'racc/logfilegenerator'
1
+ require_relative '../racc'
2
+ require_relative 'parser'
3
+ require_relative 'grammarfileparser'
4
+ require_relative 'parserfilegenerator'
5
+ require_relative 'logfilegenerator'
data/lib/racc.rb CHANGED
@@ -1,6 +1,6 @@
1
- require 'racc/compat'
2
- require 'racc/debugflags'
3
- require 'racc/grammar'
4
- require 'racc/state'
5
- require 'racc/exception'
6
- require 'racc/info'
1
+ require_relative 'racc/compat'
2
+ require_relative 'racc/debugflags'
3
+ require_relative 'racc/grammar'
4
+ require_relative 'racc/state'
5
+ require_relative 'racc/exception'
6
+ require_relative 'racc/info'
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.8.0
4
+ version: 1.8.1
5
5
  platform: java
6
6
  authors:
7
7
  - Minero Aoki
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-20 00:00:00.000000000 Z
12
+ date: 2024-07-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
- Racc is a LALR(1) parser generator.
15
+ Racc is an LALR(1) parser generator.
16
16
  It is written in Ruby itself, and generates Ruby program.
17
17
 
18
18
  NOTE: Ruby 1.8.x comes with Racc runtime module. You
@@ -28,6 +28,7 @@ extra_rdoc_files:
28
28
  - README.ja.rdoc
29
29
  - README.rdoc
30
30
  files:
31
+ - BSDL
31
32
  - COPYING
32
33
  - ChangeLog
33
34
  - README.ja.rdoc
@@ -63,7 +64,8 @@ homepage: https://github.com/ruby/racc
63
64
  licenses:
64
65
  - Ruby
65
66
  - BSD-2-Clause
66
- metadata: {}
67
+ metadata:
68
+ changelog_uri: https://github.com/ruby/racc/releases
67
69
  post_install_message:
68
70
  rdoc_options:
69
71
  - "--main"
@@ -84,5 +86,5 @@ requirements: []
84
86
  rubygems_version: 3.3.26
85
87
  signing_key:
86
88
  specification_version: 4
87
- summary: Racc is a LALR(1) parser generator
89
+ summary: Racc is an LALR(1) parser generator
88
90
  test_files: []