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
data/test/regress/journey DELETED
@@ -1,222 +0,0 @@
1
- #
2
- # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.5.0
4
- # from Racc grammar file "".
5
- #
6
-
7
- require 'racc/parser.rb'
8
-
9
-
10
- require 'journey/parser_extras'
11
- module Journey
12
- class Parser < Racc::Parser
13
- ##### State transition tables begin ###
14
-
15
- racc_action_table = [
16
- 17, 21, 13, 15, 14, 7, nil, 16, 8, 19,
17
- 13, 15, 14, 7, 23, 16, 8, 19, 13, 15,
18
- 14, 7, nil, 16, 8, 13, 15, 14, 7, nil,
19
- 16, 8, 13, 15, 14, 7, nil, 16, 8 ]
20
-
21
- racc_action_check = [
22
- 1, 17, 1, 1, 1, 1, nil, 1, 1, 1,
23
- 20, 20, 20, 20, 20, 20, 20, 20, 0, 0,
24
- 0, 0, nil, 0, 0, 7, 7, 7, 7, nil,
25
- 7, 7, 19, 19, 19, 19, nil, 19, 19 ]
26
-
27
- racc_action_pointer = [
28
- 16, 0, nil, nil, nil, nil, nil, 23, nil, nil,
29
- nil, nil, nil, nil, nil, nil, nil, 1, nil, 30,
30
- 8, nil, nil, nil ]
31
-
32
- racc_action_default = [
33
- -18, -18, -2, -3, -4, -5, -6, -18, -9, -10,
34
- -11, -12, -13, -14, -15, -16, -17, -18, -1, -18,
35
- -18, 24, -8, -7 ]
36
-
37
- racc_goto_table = [
38
- 18, 1, nil, nil, nil, nil, nil, nil, 20, nil,
39
- nil, nil, nil, nil, nil, nil, nil, nil, 22, 18 ]
40
-
41
- racc_goto_check = [
42
- 2, 1, nil, nil, nil, nil, nil, nil, 1, nil,
43
- nil, nil, nil, nil, nil, nil, nil, nil, 2, 2 ]
44
-
45
- racc_goto_pointer = [
46
- nil, 1, -1, nil, nil, nil, nil, nil, nil, nil,
47
- nil ]
48
-
49
- racc_goto_default = [
50
- nil, nil, 2, 3, 4, 5, 6, 9, 10, 11,
51
- 12 ]
52
-
53
- racc_reduce_table = [
54
- 0, 0, :racc_error,
55
- 2, 11, :_reduce_1,
56
- 1, 11, :_reduce_2,
57
- 1, 11, :_reduce_none,
58
- 1, 12, :_reduce_none,
59
- 1, 12, :_reduce_none,
60
- 1, 12, :_reduce_none,
61
- 3, 15, :_reduce_7,
62
- 3, 13, :_reduce_8,
63
- 1, 16, :_reduce_9,
64
- 1, 14, :_reduce_none,
65
- 1, 14, :_reduce_none,
66
- 1, 14, :_reduce_none,
67
- 1, 14, :_reduce_none,
68
- 1, 19, :_reduce_14,
69
- 1, 17, :_reduce_15,
70
- 1, 18, :_reduce_16,
71
- 1, 20, :_reduce_17 ]
72
-
73
- racc_reduce_n = 18
74
-
75
- racc_shift_n = 24
76
-
77
- racc_token_table = {
78
- false => 0,
79
- :error => 1,
80
- :SLASH => 2,
81
- :LITERAL => 3,
82
- :SYMBOL => 4,
83
- :LPAREN => 5,
84
- :RPAREN => 6,
85
- :DOT => 7,
86
- :STAR => 8,
87
- :OR => 9 }
88
-
89
- racc_nt_base = 10
90
-
91
- racc_use_result_var = true
92
-
93
- Racc_arg = [
94
- racc_action_table,
95
- racc_action_check,
96
- racc_action_default,
97
- racc_action_pointer,
98
- racc_goto_table,
99
- racc_goto_check,
100
- racc_goto_default,
101
- racc_goto_pointer,
102
- racc_nt_base,
103
- racc_reduce_table,
104
- racc_token_table,
105
- racc_shift_n,
106
- racc_reduce_n,
107
- racc_use_result_var ]
108
-
109
- Racc_token_to_s_table = [
110
- "$end",
111
- "error",
112
- "SLASH",
113
- "LITERAL",
114
- "SYMBOL",
115
- "LPAREN",
116
- "RPAREN",
117
- "DOT",
118
- "STAR",
119
- "OR",
120
- "$start",
121
- "expressions",
122
- "expression",
123
- "or",
124
- "terminal",
125
- "group",
126
- "star",
127
- "symbol",
128
- "literal",
129
- "slash",
130
- "dot" ]
131
-
132
- Racc_debug_parser = false
133
-
134
- ##### State transition tables end #####
135
-
136
- # reduce 0 omitted
137
-
138
- module_eval(<<'.,.,', 'journey.y', 6)
139
- def _reduce_1(val, _values, result)
140
- result = Cat.new(val.first, val.last)
141
- result
142
- end
143
- .,.,
144
-
145
- module_eval(<<'.,.,', 'journey.y', 7)
146
- def _reduce_2(val, _values, result)
147
- result = val.first
148
- result
149
- end
150
- .,.,
151
-
152
- # reduce 3 omitted
153
-
154
- # reduce 4 omitted
155
-
156
- # reduce 5 omitted
157
-
158
- # reduce 6 omitted
159
-
160
- module_eval(<<'.,.,', 'journey.y', 16)
161
- def _reduce_7(val, _values, result)
162
- result = Group.new(val[1])
163
- result
164
- end
165
- .,.,
166
-
167
- module_eval(<<'.,.,', 'journey.y', 19)
168
- def _reduce_8(val, _values, result)
169
- result = Or.new([val.first, val.last])
170
- result
171
- end
172
- .,.,
173
-
174
- module_eval(<<'.,.,', 'journey.y', 22)
175
- def _reduce_9(val, _values, result)
176
- result = Star.new(Symbol.new(val.last))
177
- result
178
- end
179
- .,.,
180
-
181
- # reduce 10 omitted
182
-
183
- # reduce 11 omitted
184
-
185
- # reduce 12 omitted
186
-
187
- # reduce 13 omitted
188
-
189
- module_eval(<<'.,.,', 'journey.y', 31)
190
- def _reduce_14(val, _values, result)
191
- result = Slash.new('/')
192
- result
193
- end
194
- .,.,
195
-
196
- module_eval(<<'.,.,', 'journey.y', 34)
197
- def _reduce_15(val, _values, result)
198
- result = Symbol.new(val.first)
199
- result
200
- end
201
- .,.,
202
-
203
- module_eval(<<'.,.,', 'journey.y', 37)
204
- def _reduce_16(val, _values, result)
205
- result = Literal.new(val.first)
206
- result
207
- end
208
- .,.,
209
-
210
- module_eval(<<'.,.,', 'journey.y', 39)
211
- def _reduce_17(val, _values, result)
212
- result = Dot.new(val.first)
213
- result
214
- end
215
- .,.,
216
-
217
- def _reduce_none(val, _values, result)
218
- val[0]
219
- end
220
-
221
- end # class Parser
222
- end # module Journey