racc 1.4.13 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/COPYING +22 -515
- data/README.ja.rdoc +3 -4
- data/README.rdoc +6 -8
- data/Rakefile +30 -53
- data/bin/racc +39 -27
- data/ext/racc/com/headius/racc/Cparse.java +66 -23
- data/ext/racc/{cparse.c → cparse/cparse.c} +78 -47
- data/ext/racc/{extconf.rb → cparse/extconf.rb} +2 -1
- data/lib/racc/compat.rb +5 -4
- data/lib/racc/debugflags.rb +5 -4
- data/lib/racc/exception.rb +5 -4
- data/lib/racc/grammar.rb +25 -22
- data/lib/racc/grammarfileparser.rb +10 -8
- data/lib/racc/info.rb +6 -5
- data/lib/racc/iset.rb +6 -5
- data/lib/racc/logfilegenerator.rb +6 -5
- data/lib/racc/parser-text.rb +23 -24
- data/lib/racc/parser.rb +23 -24
- data/lib/racc/parserfilegenerator.rb +10 -10
- data/lib/racc/sourcetext.rb +5 -4
- data/lib/racc/state.rb +13 -12
- data/lib/racc/statetransitiontable.rb +7 -6
- 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/cadenza.y +170 -0
- data/test/assets/cast.y +926 -0
- data/test/assets/csspool.y +729 -0
- data/test/assets/edtf.y +583 -0
- data/test/assets/error_recovery.y +35 -0
- data/test/assets/huia.y +318 -0
- data/test/assets/intp.y +4 -4
- data/test/assets/journey.y +47 -0
- data/test/assets/liquor.y +313 -0
- data/test/assets/machete.y +423 -0
- data/test/assets/macruby.y +2197 -0
- data/test/assets/mailp.y +27 -27
- data/test/assets/mediacloth.y +599 -0
- data/test/assets/mof.y +649 -0
- data/test/assets/namae.y +302 -0
- data/test/assets/nasl.y +626 -0
- data/test/assets/nokogiri-css.y +255 -0
- data/test/assets/nullbug2.y +2 -2
- data/test/assets/opal.y +1807 -0
- data/test/assets/php_serialization.y +98 -0
- data/test/assets/recv.y +20 -20
- data/test/assets/riml.y +665 -0
- data/test/assets/ruby18.y +1943 -0
- data/test/assets/ruby19.y +2174 -0
- data/test/assets/ruby20.y +2350 -0
- data/test/assets/ruby21.y +2359 -0
- data/test/assets/ruby22.y +2381 -0
- data/test/assets/syntax.y +1 -1
- data/test/assets/tp_plus.y +622 -0
- data/test/assets/twowaysql.y +278 -0
- data/test/helper.rb +69 -41
- data/test/regress/cadenza +796 -0
- data/test/regress/cast +3428 -0
- data/test/regress/csspool +2314 -0
- data/test/regress/edtf +1794 -0
- data/test/regress/huia +1392 -0
- data/test/regress/journey +222 -0
- data/test/regress/liquor +885 -0
- data/test/regress/machete +833 -0
- data/test/regress/mediacloth +1463 -0
- data/test/regress/mof +1368 -0
- data/test/regress/namae +634 -0
- data/test/regress/nasl +2058 -0
- data/test/regress/nokogiri-css +836 -0
- data/test/regress/opal +6431 -0
- data/test/regress/php_serialization +336 -0
- data/test/regress/riml +3283 -0
- data/test/regress/ruby18 +6344 -0
- data/test/regress/ruby22 +7460 -0
- data/test/regress/tp_plus +1933 -0
- data/test/regress/twowaysql +556 -0
- data/test/test_chk_y.rb +1 -0
- data/test/test_racc_command.rb +186 -2
- data/test/test_scan_y.rb +1 -0
- data/test/testscanner.rb +1 -1
- metadata +60 -83
- data/DEPENDS +0 -4
- data/Manifest.txt +0 -101
- data/bin/racc2y +0 -195
- data/bin/y2racc +0 -339
- data/ext/racc/depend +0 -1
- 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')
|