racc 1.4.16 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +19 -0
  3. data/bin/racc +3 -6
  4. data/ext/racc/cparse/extconf.rb +1 -1
  5. data/lib/racc/compat.rb +3 -1
  6. data/lib/racc/debugflags.rb +3 -1
  7. data/lib/racc/exception.rb +4 -1
  8. data/lib/racc/grammar.rb +4 -1
  9. data/lib/racc/grammarfileparser.rb +4 -2
  10. data/lib/racc/info.rb +5 -2
  11. data/lib/racc/iset.rb +3 -1
  12. data/lib/racc/logfilegenerator.rb +3 -1
  13. data/lib/racc/parser-text.rb +5 -11
  14. data/lib/racc/parser.rb +5 -11
  15. data/lib/racc/parserfilegenerator.rb +7 -4
  16. data/lib/racc/sourcetext.rb +3 -1
  17. data/lib/racc/state.rb +4 -1
  18. data/lib/racc/statetransitiontable.rb +4 -2
  19. data/rdoc/ja/command.ja.html +1 -1
  20. data/sample/array.y +1 -1
  21. data/sample/array2.y +1 -1
  22. data/sample/calc-ja.y +2 -2
  23. data/sample/calc.y +2 -2
  24. data/sample/conflict.y +1 -1
  25. data/sample/hash.y +1 -1
  26. data/sample/lalr.y +1 -1
  27. data/sample/lists.y +1 -1
  28. data/sample/syntax.y +1 -1
  29. data/sample/yyerr.y +1 -1
  30. data/test/assets/nasl.y +1 -1
  31. data/test/regress/cadenza +1 -1
  32. data/test/regress/cast +1 -1
  33. data/test/regress/csspool +1 -1
  34. data/test/regress/edtf +1 -1
  35. data/test/regress/huia +1 -1
  36. data/test/regress/journey +1 -1
  37. data/test/regress/liquor +1 -1
  38. data/test/regress/machete +1 -1
  39. data/test/regress/mediacloth +1 -1
  40. data/test/regress/mof +1 -1
  41. data/test/regress/namae +1 -1
  42. data/test/regress/nasl +2 -2
  43. data/test/regress/nokogiri-css +1 -1
  44. data/test/regress/opal +1 -1
  45. data/test/regress/php_serialization +1 -1
  46. data/test/regress/riml +1 -1
  47. data/test/regress/ruby18 +1 -1
  48. data/test/regress/ruby22 +1 -1
  49. data/test/regress/tp_plus +1 -1
  50. data/test/regress/twowaysql +1 -1
  51. metadata +4 -17
  52. data/DEPENDS +0 -4
  53. data/Manifest.txt +0 -146
  54. data/bin/racc2y +0 -195
  55. data/bin/y2racc +0 -339
  56. data/fastcache/extconf.rb +0 -2
  57. data/fastcache/fastcache.c +0 -185
  58. data/misc/dist.sh +0 -31
  59. data/setup.rb +0 -1587
  60. data/tasks/doc.rb +0 -12
  61. data/tasks/email.rb +0 -55
@@ -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
@@ -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')