mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import racc-1.5.0 from upstream repository.
This commit is contained in:
parent
edffe78a79
commit
48a5c155fa
4 changed files with 5 additions and 8 deletions
|
@ -11,7 +11,7 @@
|
||||||
#++
|
#++
|
||||||
|
|
||||||
module Racc
|
module Racc
|
||||||
VERSION = '1.4.16'
|
VERSION = '1.5.0'
|
||||||
Version = VERSION
|
Version = VERSION
|
||||||
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
||||||
end
|
end
|
||||||
|
|
|
@ -192,6 +192,7 @@ module Racc
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
||||||
|
require 'jruby'
|
||||||
require 'racc/cparse-jruby.jar'
|
require 'racc/cparse-jruby.jar'
|
||||||
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
||||||
else
|
else
|
||||||
|
|
|
@ -190,6 +190,7 @@ module Racc
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
||||||
|
require 'jruby'
|
||||||
require 'racc/cparse-jruby.jar'
|
require 'racc/cparse-jruby.jar'
|
||||||
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
||||||
else
|
else
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "racc"
|
s.name = "racc"
|
||||||
s.version = "1.4.16"
|
s.version = "1.5.0"
|
||||||
s.summary = "Racc is a LALR(1) parser generator"
|
s.summary = "Racc is a LALR(1) parser generator"
|
||||||
s.description = <<DESC
|
s.description = <<DESC
|
||||||
Racc is a LALR(1) parser generator.
|
Racc is a LALR(1) parser generator.
|
||||||
|
@ -18,7 +18,7 @@ DESC
|
||||||
s.licenses = ["MIT"]
|
s.licenses = ["MIT"]
|
||||||
s.executables = ["racc"]
|
s.executables = ["racc"]
|
||||||
s.files = [
|
s.files = [
|
||||||
"COPYING", "ChangeLog", "DEPENDS",
|
"COPYING", "ChangeLog",
|
||||||
"README.ja.rdoc", "README.rdoc", "Rakefile", "TODO", "bin/racc",
|
"README.ja.rdoc", "README.rdoc", "Rakefile", "TODO", "bin/racc",
|
||||||
"ext/racc/MANIFEST",
|
"ext/racc/MANIFEST",
|
||||||
"ext/racc/com/headius/racc/Cparse.java", "ext/racc/cparse/cparse.c",
|
"ext/racc/com/headius/racc/Cparse.java", "ext/racc/cparse/cparse.c",
|
||||||
|
@ -99,9 +99,4 @@ DESC
|
||||||
else
|
else
|
||||||
s.extensions = ["ext/racc/cparse/extconf.rb"]
|
s.extensions = ["ext/racc/cparse/extconf.rb"]
|
||||||
end
|
end
|
||||||
|
|
||||||
s.add_development_dependency("rake-compiler", [">= 0.4.1"])
|
|
||||||
s.add_development_dependency("minitest", ["~> 4.7"])
|
|
||||||
s.add_development_dependency("rdoc", [">= 4.0", "< 7"])
|
|
||||||
s.add_development_dependency("hoe", ["~> 3.18"])
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue