racc 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.ja.rdoc +0 -1
  3. data/README.rdoc +6 -7
  4. data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
  5. data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
  6. data/doc/en/grammar2.en.rdoc +219 -0
  7. data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
  8. data/{rdoc → doc}/ja/command.ja.html +0 -0
  9. data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
  10. data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
  11. data/{rdoc → doc}/ja/index.ja.html +0 -0
  12. data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
  13. data/{rdoc → doc}/ja/usage.ja.html +0 -0
  14. data/ext/racc/cparse/cparse.c +1 -1
  15. data/ext/racc/cparse/extconf.rb +1 -0
  16. data/lib/racc/info.rb +1 -1
  17. data/lib/racc/parser-text.rb +1 -1
  18. data/lib/racc/parser.rb +1 -1
  19. data/lib/racc/parserfilegenerator.rb +0 -44
  20. data/lib/racc/statetransitiontable.rb +2 -8
  21. metadata +15 -121
  22. data/Rakefile +0 -79
  23. data/ext/racc/com/headius/racc/Cparse.java +0 -849
  24. data/lib/racc/pre-setup +0 -13
  25. data/sample/array.y +0 -67
  26. data/sample/array2.y +0 -59
  27. data/sample/calc-ja.y +0 -66
  28. data/sample/calc.y +0 -65
  29. data/sample/conflict.y +0 -15
  30. data/sample/hash.y +0 -60
  31. data/sample/lalr.y +0 -17
  32. data/sample/lists.y +0 -57
  33. data/sample/syntax.y +0 -46
  34. data/sample/yyerr.y +0 -46
  35. data/test/assets/cadenza.y +0 -170
  36. data/test/assets/cast.y +0 -926
  37. data/test/assets/chk.y +0 -126
  38. data/test/assets/conf.y +0 -16
  39. data/test/assets/csspool.y +0 -729
  40. data/test/assets/digraph.y +0 -29
  41. data/test/assets/echk.y +0 -118
  42. data/test/assets/edtf.y +0 -583
  43. data/test/assets/err.y +0 -60
  44. data/test/assets/error_recovery.y +0 -35
  45. data/test/assets/expect.y +0 -7
  46. data/test/assets/firstline.y +0 -4
  47. data/test/assets/huia.y +0 -318
  48. data/test/assets/ichk.y +0 -102
  49. data/test/assets/intp.y +0 -546
  50. data/test/assets/journey.y +0 -47
  51. data/test/assets/liquor.y +0 -313
  52. data/test/assets/machete.y +0 -423
  53. data/test/assets/macruby.y +0 -2197
  54. data/test/assets/mailp.y +0 -437
  55. data/test/assets/mediacloth.y +0 -599
  56. data/test/assets/mof.y +0 -649
  57. data/test/assets/namae.y +0 -302
  58. data/test/assets/nasl.y +0 -626
  59. data/test/assets/newsyn.y +0 -25
  60. data/test/assets/noend.y +0 -4
  61. data/test/assets/nokogiri-css.y +0 -255
  62. data/test/assets/nonass.y +0 -41
  63. data/test/assets/normal.y +0 -27
  64. data/test/assets/norule.y +0 -4
  65. data/test/assets/nullbug1.y +0 -25
  66. data/test/assets/nullbug2.y +0 -15
  67. data/test/assets/opal.y +0 -1807
  68. data/test/assets/opt.y +0 -123
  69. data/test/assets/percent.y +0 -35
  70. data/test/assets/php_serialization.y +0 -98
  71. data/test/assets/recv.y +0 -97
  72. data/test/assets/riml.y +0 -665
  73. data/test/assets/rrconf.y +0 -14
  74. data/test/assets/ruby18.y +0 -1943
  75. data/test/assets/ruby19.y +0 -2174
  76. data/test/assets/ruby20.y +0 -2350
  77. data/test/assets/ruby21.y +0 -2359
  78. data/test/assets/ruby22.y +0 -2381
  79. data/test/assets/scan.y +0 -72
  80. data/test/assets/syntax.y +0 -50
  81. data/test/assets/tp_plus.y +0 -622
  82. data/test/assets/twowaysql.y +0 -278
  83. data/test/assets/unterm.y +0 -5
  84. data/test/assets/useless.y +0 -12
  85. data/test/assets/yyerr.y +0 -46
  86. data/test/bench.y +0 -36
  87. data/test/helper.rb +0 -115
  88. data/test/infini.y +0 -8
  89. data/test/regress/cadenza +0 -796
  90. data/test/regress/cast +0 -3428
  91. data/test/regress/csspool +0 -2314
  92. data/test/regress/edtf +0 -1794
  93. data/test/regress/huia +0 -1392
  94. data/test/regress/journey +0 -222
  95. data/test/regress/liquor +0 -885
  96. data/test/regress/machete +0 -833
  97. data/test/regress/mediacloth +0 -1463
  98. data/test/regress/mof +0 -1368
  99. data/test/regress/namae +0 -634
  100. data/test/regress/nasl +0 -2058
  101. data/test/regress/nokogiri-css +0 -836
  102. data/test/regress/opal +0 -6431
  103. data/test/regress/php_serialization +0 -336
  104. data/test/regress/riml +0 -3283
  105. data/test/regress/ruby18 +0 -6344
  106. data/test/regress/ruby22 +0 -7460
  107. data/test/regress/tp_plus +0 -1933
  108. data/test/regress/twowaysql +0 -556
  109. data/test/scandata/brace +0 -7
  110. data/test/scandata/gvar +0 -1
  111. data/test/scandata/normal +0 -4
  112. data/test/scandata/percent +0 -18
  113. data/test/scandata/slash +0 -10
  114. data/test/src.intp +0 -34
  115. data/test/start.y +0 -20
  116. data/test/test_chk_y.rb +0 -52
  117. data/test/test_grammar_file_parser.rb +0 -15
  118. data/test/test_racc_command.rb +0 -339
  119. data/test/test_scan_y.rb +0 -52
  120. data/test/testscanner.rb +0 -51
  121. data/web/racc.en.rhtml +0 -42
  122. data/web/racc.ja.rhtml +0 -51
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-26 00:00:00.000000000 Z
12
+ date: 2021-10-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
15
  Racc is a LALR(1) parser generator.
@@ -28,22 +28,24 @@ extensions:
28
28
  extra_rdoc_files:
29
29
  - README.ja.rdoc
30
30
  - README.rdoc
31
- - rdoc/en/NEWS.en.rdoc
32
- - rdoc/en/grammar.en.rdoc
33
- - rdoc/ja/NEWS.ja.rdoc
34
- - rdoc/ja/debug.ja.rdoc
35
- - rdoc/ja/grammar.ja.rdoc
36
- - rdoc/ja/parser.ja.rdoc
37
31
  files:
38
32
  - COPYING
39
33
  - ChangeLog
40
34
  - README.ja.rdoc
41
35
  - README.rdoc
42
- - Rakefile
43
36
  - TODO
44
37
  - bin/racc
38
+ - doc/en/NEWS.en.rdoc
39
+ - doc/en/grammar.en.rdoc
40
+ - doc/en/grammar2.en.rdoc
41
+ - doc/ja/NEWS.ja.rdoc
42
+ - doc/ja/command.ja.html
43
+ - doc/ja/debug.ja.rdoc
44
+ - doc/ja/grammar.ja.rdoc
45
+ - doc/ja/index.ja.html
46
+ - doc/ja/parser.ja.rdoc
47
+ - doc/ja/usage.ja.html
45
48
  - ext/racc/MANIFEST
46
- - ext/racc/com/headius/racc/Cparse.java
47
49
  - ext/racc/cparse/cparse.c
48
50
  - ext/racc/cparse/extconf.rb
49
51
  - lib/racc.rb
@@ -58,119 +60,11 @@ files:
58
60
  - lib/racc/parser-text.rb
59
61
  - lib/racc/parser.rb
60
62
  - lib/racc/parserfilegenerator.rb
61
- - lib/racc/pre-setup
62
63
  - lib/racc/sourcetext.rb
63
64
  - lib/racc/state.rb
64
65
  - lib/racc/statetransitiontable.rb
65
66
  - lib/racc/static.rb
66
- - rdoc/en/NEWS.en.rdoc
67
- - rdoc/en/grammar.en.rdoc
68
- - rdoc/ja/NEWS.ja.rdoc
69
- - rdoc/ja/command.ja.html
70
- - rdoc/ja/debug.ja.rdoc
71
- - rdoc/ja/grammar.ja.rdoc
72
- - rdoc/ja/index.ja.html
73
- - rdoc/ja/parser.ja.rdoc
74
- - rdoc/ja/usage.ja.html
75
- - sample/array.y
76
- - sample/array2.y
77
- - sample/calc-ja.y
78
- - sample/calc.y
79
- - sample/conflict.y
80
- - sample/hash.y
81
- - sample/lalr.y
82
- - sample/lists.y
83
- - sample/syntax.y
84
- - sample/yyerr.y
85
- - test/assets/cadenza.y
86
- - test/assets/cast.y
87
- - test/assets/chk.y
88
- - test/assets/conf.y
89
- - test/assets/csspool.y
90
- - test/assets/digraph.y
91
- - test/assets/echk.y
92
- - test/assets/edtf.y
93
- - test/assets/err.y
94
- - test/assets/error_recovery.y
95
- - test/assets/expect.y
96
- - test/assets/firstline.y
97
- - test/assets/huia.y
98
- - test/assets/ichk.y
99
- - test/assets/intp.y
100
- - test/assets/journey.y
101
- - test/assets/liquor.y
102
- - test/assets/machete.y
103
- - test/assets/macruby.y
104
- - test/assets/mailp.y
105
- - test/assets/mediacloth.y
106
- - test/assets/mof.y
107
- - test/assets/namae.y
108
- - test/assets/nasl.y
109
- - test/assets/newsyn.y
110
- - test/assets/noend.y
111
- - test/assets/nokogiri-css.y
112
- - test/assets/nonass.y
113
- - test/assets/normal.y
114
- - test/assets/norule.y
115
- - test/assets/nullbug1.y
116
- - test/assets/nullbug2.y
117
- - test/assets/opal.y
118
- - test/assets/opt.y
119
- - test/assets/percent.y
120
- - test/assets/php_serialization.y
121
- - test/assets/recv.y
122
- - test/assets/riml.y
123
- - test/assets/rrconf.y
124
- - test/assets/ruby18.y
125
- - test/assets/ruby19.y
126
- - test/assets/ruby20.y
127
- - test/assets/ruby21.y
128
- - test/assets/ruby22.y
129
- - test/assets/scan.y
130
- - test/assets/syntax.y
131
- - test/assets/tp_plus.y
132
- - test/assets/twowaysql.y
133
- - test/assets/unterm.y
134
- - test/assets/useless.y
135
- - test/assets/yyerr.y
136
- - test/bench.y
137
- - test/helper.rb
138
- - test/infini.y
139
- - test/regress/cadenza
140
- - test/regress/cast
141
- - test/regress/csspool
142
- - test/regress/edtf
143
- - test/regress/huia
144
- - test/regress/journey
145
- - test/regress/liquor
146
- - test/regress/machete
147
- - test/regress/mediacloth
148
- - test/regress/mof
149
- - test/regress/namae
150
- - test/regress/nasl
151
- - test/regress/nokogiri-css
152
- - test/regress/opal
153
- - test/regress/php_serialization
154
- - test/regress/riml
155
- - test/regress/ruby18
156
- - test/regress/ruby22
157
- - test/regress/tp_plus
158
- - test/regress/twowaysql
159
- - test/scandata/brace
160
- - test/scandata/gvar
161
- - test/scandata/normal
162
- - test/scandata/percent
163
- - test/scandata/slash
164
- - test/src.intp
165
- - test/start.y
166
- - test/test_chk_y.rb
167
- - test/test_grammar_file_parser.rb
168
- - test/test_racc_command.rb
169
- - test/test_scan_y.rb
170
- - test/testscanner.rb
171
- - web/racc.en.rhtml
172
- - web/racc.ja.rhtml
173
- homepage: http://i.loveruby.net/en/projects/racc/
67
+ homepage: https://i.loveruby.net/en/projects/racc/
174
68
  licenses:
175
69
  - Ruby
176
70
  - BSD-2-Clause
@@ -185,14 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
79
  requirements:
186
80
  - - ">="
187
81
  - !ruby/object:Gem::Version
188
- version: '0'
82
+ version: '2.5'
189
83
  required_rubygems_version: !ruby/object:Gem::Requirement
190
84
  requirements:
191
85
  - - ">="
192
86
  - !ruby/object:Gem::Version
193
87
  version: '0'
194
88
  requirements: []
195
- rubygems_version: 3.2.3
89
+ rubygems_version: 3.3.0.dev
196
90
  signing_key:
197
91
  specification_version: 4
198
92
  summary: Racc is a LALR(1) parser generator
data/Rakefile DELETED
@@ -1,79 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require "bundler/gem_tasks"
4
-
5
- require 'rdoc/task'
6
-
7
- RDoc::Task.new(:docs) do |rd|
8
- spec = Gem::Specification.load("racc.gemspec")
9
- rd.main = "README.en.rdoc"
10
- rd.rdoc_files.include(spec.files.find_all { |file_name|
11
- file_name =~ /^(bin|lib|ext)/ || file_name !~ /\//
12
- })
13
-
14
- title = "#{spec.name}-#{spec.version} Documentation"
15
-
16
- rd.options << "-t #{title}"
17
- end
18
-
19
- require 'rake/testtask'
20
-
21
- Rake::TestTask.new(:test) do |t|
22
- t.test_files = FileList["test/**/test_*.rb"]
23
- if RUBY_VERSION >= "2.6"
24
- t.ruby_opts = %w[--enable-frozen-string-literal --debug=frozen-string-literal]
25
- end
26
- end
27
- gem 'rake-compiler', '>= 0.4.1'
28
-
29
- def java?
30
- /java/ === RUBY_PLATFORM
31
- end
32
- def jruby?
33
- Object.const_defined?(:RUBY_ENGINE) and 'jruby' == RUBY_ENGINE
34
- end
35
-
36
- file 'lib/racc/parser-text.rb' => ['lib/racc/parser.rb'] do |t|
37
- source = 'lib/racc/parser.rb'
38
-
39
- open(t.name, 'wb') { |io|
40
- io.write(<<-eorb)
41
- module Racc
42
- PARSER_TEXT = <<'__end_of_file__'
43
- #{File.read(source)}
44
- __end_of_file__
45
- end
46
- eorb
47
- }
48
- end
49
-
50
- if jruby?
51
- # JRUBY
52
- require "rake/javaextensiontask"
53
- Rake::JavaExtensionTask.new("cparse") do |ext|
54
- jruby_home = RbConfig::CONFIG['prefix']
55
- ext.lib_dir = File.join 'lib', 'racc'
56
- ext.ext_dir = File.join 'ext', 'racc'
57
- # source/target jvm
58
- ext.source_version = '1.6'
59
- ext.target_version = '1.6'
60
- jars = ["#{jruby_home}/lib/jruby.jar"] + FileList['lib/*.jar']
61
- ext.classpath = jars.map { |x| File.expand_path x }.join( ':' )
62
- ext.name = 'cparse-jruby'
63
- end
64
-
65
- task :compile => ['lib/racc/parser-text.rb']
66
- else
67
- # MRI
68
- require "rake/extensiontask"
69
- Rake::ExtensionTask.new "cparse" do |ext|
70
- ext.lib_dir = File.join 'lib', 'racc'
71
- ext.ext_dir = File.join 'ext', 'racc', 'cparse'
72
- end
73
-
74
- task :compile => 'lib/racc/parser-text.rb'
75
- end
76
-
77
- task :build => "lib/racc/parser-text.rb"
78
-
79
- task :test => :compile