racc 1.4.16 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +19 -0
- data/bin/racc +3 -6
- data/ext/racc/cparse/extconf.rb +1 -1
- data/lib/racc/compat.rb +3 -1
- data/lib/racc/debugflags.rb +3 -1
- data/lib/racc/exception.rb +4 -1
- data/lib/racc/grammar.rb +4 -1
- data/lib/racc/grammarfileparser.rb +4 -2
- data/lib/racc/info.rb +5 -2
- data/lib/racc/iset.rb +3 -1
- data/lib/racc/logfilegenerator.rb +3 -1
- data/lib/racc/parser-text.rb +5 -11
- data/lib/racc/parser.rb +5 -11
- data/lib/racc/parserfilegenerator.rb +7 -4
- data/lib/racc/sourcetext.rb +3 -1
- data/lib/racc/state.rb +4 -1
- data/lib/racc/statetransitiontable.rb +4 -2
- data/rdoc/ja/command.ja.html +1 -1
- data/sample/array.y +1 -1
- data/sample/array2.y +1 -1
- data/sample/calc-ja.y +2 -2
- data/sample/calc.y +2 -2
- data/sample/conflict.y +1 -1
- data/sample/hash.y +1 -1
- data/sample/lalr.y +1 -1
- data/sample/lists.y +1 -1
- data/sample/syntax.y +1 -1
- data/sample/yyerr.y +1 -1
- data/test/assets/nasl.y +1 -1
- data/test/regress/cadenza +1 -1
- data/test/regress/cast +1 -1
- data/test/regress/csspool +1 -1
- data/test/regress/edtf +1 -1
- data/test/regress/huia +1 -1
- data/test/regress/journey +1 -1
- data/test/regress/liquor +1 -1
- data/test/regress/machete +1 -1
- data/test/regress/mediacloth +1 -1
- data/test/regress/mof +1 -1
- data/test/regress/namae +1 -1
- data/test/regress/nasl +2 -2
- data/test/regress/nokogiri-css +1 -1
- data/test/regress/opal +1 -1
- data/test/regress/php_serialization +1 -1
- data/test/regress/riml +1 -1
- data/test/regress/ruby18 +1 -1
- data/test/regress/ruby22 +1 -1
- data/test/regress/tp_plus +1 -1
- data/test/regress/twowaysql +1 -1
- metadata +4 -17
- data/DEPENDS +0 -4
- data/Manifest.txt +0 -146
- data/bin/racc2y +0 -195
- data/bin/y2racc +0 -339
- data/fastcache/extconf.rb +0 -2
- data/fastcache/fastcache.c +0 -185
- data/misc/dist.sh +0 -31
- data/setup.rb +0 -1587
- data/tasks/doc.rb +0 -12
- data/tasks/email.rb +0 -55
data/tasks/doc.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rake/rdoctask'
|
2
|
-
|
3
|
-
Rake::RDocTask.new(:docs) do |rd|
|
4
|
-
rd.main = "README.en.rdoc"
|
5
|
-
rd.rdoc_files.include(SPEC.files.find_all { |file_name|
|
6
|
-
file_name =~ /^(bin|lib|ext)/ || file_name !~ /\//
|
7
|
-
})
|
8
|
-
|
9
|
-
title = "#{SPEC.name}-#{SPEC.version} Documentation"
|
10
|
-
|
11
|
-
rd.options << "-t #{title}"
|
12
|
-
end
|
data/tasks/email.rb
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
class EmailTask
|
2
|
-
def initialize language, readme, changelog
|
3
|
-
@language = language
|
4
|
-
@readme = readme
|
5
|
-
@changelog = changelog
|
6
|
-
@languages = {
|
7
|
-
:en => {
|
8
|
-
:release => 'release',
|
9
|
-
:released => 'has been released',
|
10
|
-
},
|
11
|
-
:ja => {
|
12
|
-
:release => 'リリース',
|
13
|
-
:released => 'はリリースしました',
|
14
|
-
}
|
15
|
-
}
|
16
|
-
define_tasks
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
def define_tasks
|
21
|
-
namespace :email do
|
22
|
-
task @language do
|
23
|
-
subject = "#{SPEC.name} #{SPEC.version} #{@languages[@language][:release]}"
|
24
|
-
title = "#{SPEC.name} #{SPEC.version} #{@languages[@language][:released]}!"
|
25
|
-
readme = Hash[*(File.read(@readme).split(/^(=+ .*)$/)[1..-1])]
|
26
|
-
description = readme[readme.keys.find { |x| x =~ /description/i }]
|
27
|
-
description = description.split(/\n\n+/).find { |x|
|
28
|
-
x.length > 0
|
29
|
-
}.gsub(/^\s*/, '')
|
30
|
-
urls = readme[readme.keys.find { |x| x =~ /#{SPEC.name}/i }]
|
31
|
-
urls = urls.strip.gsub(/\*\s/, '').split(/\n/).map { |s| "* <#{s}>" }
|
32
|
-
File.open("email.#{@language}.txt", "wb") { |file|
|
33
|
-
file.puts(<<-eomail)
|
34
|
-
Subject: [ANN] #{subject}
|
35
|
-
|
36
|
-
#{title}
|
37
|
-
|
38
|
-
#{urls.join("\n")}
|
39
|
-
|
40
|
-
#{description}
|
41
|
-
|
42
|
-
Changes:
|
43
|
-
|
44
|
-
#{File.read(@changelog).split(/^(===.*)/)[1..2].join.strip.gsub(/=/, '#')}
|
45
|
-
|
46
|
-
#{urls.join("\n")}
|
47
|
-
eomail
|
48
|
-
}
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
EmailTask.new(:en, 'README.en.rdoc', 'doc/en/NEWS.en.rdoc')
|
55
|
-
EmailTask.new(:ja, 'README.ja.rdoc', 'doc/ja/NEWS.ja.rdoc')
|