racc 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5de182ad74eb075783ee57ec9f930c2d81a4d1465db436f6d5e42fb96eaa6a0f
4
- data.tar.gz: 53cb977c27837bdf4df9cd1eae679e30a00ecb07b080e8481b59bfb66aec8bf8
3
+ metadata.gz: 69b370f19f8eac7c705b49dd5d6c005a52c07ea1e00198453628d3eb68ac0e74
4
+ data.tar.gz: abad1bf0e54c19b185f043a9e37517c3fcb0240103e6dfa268ee5a7a5ade62fe
5
5
  SHA512:
6
- metadata.gz: cf79f910341f5fa146fb6f798ebfa08ad3e0379b1f322e80a004ea1b1285c4ce8bfa239f59cc078eb152d020a012d5d4f0646e2ad16a3ad55665db7d9521be1e
7
- data.tar.gz: a317170a03d5355324b1d35cecc0edcd06fd4622eee4dd5cbc48ec0c4d53631054b37798f65b90ba0b4eabce1eb281e172554139854b63bad7bc3b8bdef3b811
6
+ metadata.gz: 532d1963e4f214b026d6286e8ff357f676467e45d63dc3d4cd46bd48290f66c242f3fc177090109fe9faca73a30f79b1171f17c94e9e59c5796fb6f5448fe59d
7
+ data.tar.gz: d85b06738c817c235aae22521dd2cfda5b7b7b3ca914dc08f554a34d6ed76a665d72e89b46367ca6ae61ba275b44d563cd3bfebe997bae537098165d0e341c78
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
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: ruby
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
@@ -29,6 +29,7 @@ extra_rdoc_files:
29
29
  - README.ja.rdoc
30
30
  - README.rdoc
31
31
  files:
32
+ - BSDL
32
33
  - COPYING
33
34
  - ChangeLog
34
35
  - README.ja.rdoc
@@ -65,7 +66,8 @@ homepage: https://github.com/ruby/racc
65
66
  licenses:
66
67
  - Ruby
67
68
  - BSD-2-Clause
68
- metadata: {}
69
+ metadata:
70
+ changelog_uri: https://github.com/ruby/racc/releases
69
71
  post_install_message:
70
72
  rdoc_options:
71
73
  - "--main"
@@ -86,5 +88,5 @@ requirements: []
86
88
  rubygems_version: 3.5.0.dev
87
89
  signing_key:
88
90
  specification_version: 4
89
- summary: Racc is a LALR(1) parser generator
91
+ summary: Racc is an LALR(1) parser generator
90
92
  test_files: []