2019-06-20 01:31:41 -04:00
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
|
2020-12-26 00:26:38 -05:00
|
|
|
begin
|
|
|
|
require_relative "lib/racc/info"
|
|
|
|
rescue LoadError # Fallback to load version file in ruby core repository
|
|
|
|
require_relative "info"
|
|
|
|
end
|
|
|
|
|
2019-06-20 01:31:41 -04:00
|
|
|
Gem::Specification.new do |s|
|
2019-07-11 18:25:06 -04:00
|
|
|
s.name = "racc"
|
2020-12-26 00:26:38 -05:00
|
|
|
s.version = Racc::VERSION
|
2019-12-10 03:03:46 -05:00
|
|
|
s.summary = "Racc is a LALR(1) parser generator"
|
2019-09-16 07:01:42 -04:00
|
|
|
s.description = <<DESC
|
|
|
|
Racc is a LALR(1) parser generator.
|
|
|
|
It is written in Ruby itself, and generates Ruby program.
|
|
|
|
|
|
|
|
NOTE: Ruby 1.8.x comes with Racc runtime module. You
|
|
|
|
can run your parsers generated by racc 1.4.x out of the
|
|
|
|
box.
|
|
|
|
DESC
|
2019-12-10 03:03:46 -05:00
|
|
|
s.authors = ["Minero Aoki", "Aaron Patterson"]
|
|
|
|
s.email = [nil, "aaron@tenderlovemaking.com"]
|
|
|
|
s.homepage = "http://i.loveruby.net/en/projects/racc/"
|
2020-08-19 06:22:12 -04:00
|
|
|
s.licenses = ["Ruby", "BSD-2-Clause"]
|
2019-12-31 17:53:27 -05:00
|
|
|
s.executables = ["racc"]
|
2019-09-16 07:01:42 -04:00
|
|
|
s.files = [
|
2021-07-18 22:32:25 -04:00
|
|
|
"COPYING", "ChangeLog", "TODO",
|
|
|
|
"README.ja.rdoc", "README.rdoc", "bin/racc",
|
2019-12-31 17:53:27 -05:00
|
|
|
"ext/racc/MANIFEST",
|
2021-07-18 22:32:25 -04:00
|
|
|
"ext/racc/cparse/cparse.c",
|
2020-02-26 23:33:51 -05:00
|
|
|
"ext/racc/cparse/extconf.rb",
|
|
|
|
"lib/racc.rb", "lib/racc/compat.rb",
|
2019-09-16 07:01:42 -04:00
|
|
|
"lib/racc/debugflags.rb", "lib/racc/exception.rb",
|
|
|
|
"lib/racc/grammar.rb", "lib/racc/grammarfileparser.rb",
|
|
|
|
"lib/racc/info.rb", "lib/racc/iset.rb",
|
|
|
|
"lib/racc/logfilegenerator.rb", "lib/racc/parser-text.rb",
|
|
|
|
"lib/racc/parser.rb", "lib/racc/parserfilegenerator.rb",
|
2021-07-18 22:32:41 -04:00
|
|
|
"lib/racc/sourcetext.rb",
|
2019-09-16 07:01:42 -04:00
|
|
|
"lib/racc/state.rb", "lib/racc/statetransitiontable.rb",
|
2021-07-18 22:28:10 -04:00
|
|
|
"lib/racc/static.rb",
|
|
|
|
"doc/en/NEWS.en.rdoc", "doc/en/grammar2.en.rdoc",
|
2021-06-22 05:24:06 -04:00
|
|
|
"doc/en/grammar.en.rdoc", "doc/ja/NEWS.ja.rdoc",
|
|
|
|
"doc/ja/command.ja.html", "doc/ja/debug.ja.rdoc",
|
|
|
|
"doc/ja/grammar.ja.rdoc", "doc/ja/index.ja.html",
|
|
|
|
"doc/ja/parser.ja.rdoc", "doc/ja/usage.ja.html",
|
2019-09-16 07:01:42 -04:00
|
|
|
]
|
2019-12-10 03:03:46 -05:00
|
|
|
s.require_paths = ["lib"]
|
2021-06-22 05:16:36 -04:00
|
|
|
s.required_ruby_version = ">= 2.5"
|
2019-12-10 03:03:46 -05:00
|
|
|
s.rdoc_options = ["--main", "README.rdoc"]
|
2021-06-17 18:42:45 -04:00
|
|
|
s.extra_rdoc_files = ["README.ja.rdoc", "README.rdoc"]
|
2019-12-10 03:03:46 -05:00
|
|
|
|
|
|
|
if RUBY_PLATFORM =~ /java/
|
|
|
|
s.files << 'lib/racc/cparse-jruby.jar'
|
2020-02-26 23:33:51 -05:00
|
|
|
s.platform = 'java'
|
|
|
|
else
|
|
|
|
s.extensions = ["ext/racc/cparse/extconf.rb"]
|
2019-12-10 03:03:46 -05:00
|
|
|
end
|
2019-06-20 01:31:41 -04:00
|
|
|
end
|