C0 code coverage information
Generated on Wed May 31 01:38:08 AUS Eastern Standard Time 2006 with rcov 0.4.1
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name |
Total lines |
Lines of code |
Total coverage |
Code coverage |
misp.tab.rb
|
239
|
181
|
|
|
1 #
2 # DO NOT MODIFY!!!!
3 # This file is automatically generated by racc 1.4.4
4 # from racc grammer file "misp.y".
5 #
6
7 require 'racc/parser'
8
9
10 module Misp
11
12 class Parser < Racc::Parser
13
14 module_eval <<'..end misp.y modeval..id214883ec31', 'misp.y', 21
15
16 require 'strscan'
17 require 'misp'
18
19 def p(*args)
20 Misp::Pair.new(*args)
21 end
22
23 def initialize(str)
24 super()
25 @scanner = StringScanner.new(str)
26 end
27
28 def next_token
29 @scanner.scan /\s*/ # ignore whitespace
30 return nil if @scanner.eos?
31 s = @scanner.scan(/[^.()'{}|\s]+/)
32 if s
33 [:atom, s.to_sym]
34 elsif !@scanner.scan(/\s+/)
35 s = @scanner.get_byte
36 [s, s]
37 end
38 end
39
40 public :do_parse
41 ..end misp.y modeval..id214883ec31
42
43 ##### racc 1.4.4 generates ###
44
45 racc_reduce_table = [
46 0, 0, :racc_error,
47 1, 11, :_reduce_none,
48 1, 11, :_reduce_none,
49 3, 12, :_reduce_3,
50 1, 12, :_reduce_none,
51 1, 12, :_reduce_none,
52 1, 13, :_reduce_6,
53 3, 13, :_reduce_7,
54 2, 13, :_reduce_8,
55 2, 14, :_reduce_9,
56 6, 15, :_reduce_10,
57 1, 16, :_reduce_11,
58 2, 16, :_reduce_12,
59 3, 16, :_reduce_13 ]
60
61 racc_reduce_n = 14
62
63 racc_shift_n = 28
64
65 racc_action_table = [
66 3, 5, 3, 5, 7, 8, 7, 8, 3, 5,
67 3, 5, 7, 8, 7, 8, 3, 5, 3, 5,
68 7, 8, 7, 8, 3, 5, 17, 16, 7, 8,
69 3, 5, 22, 14, 7, 8, 3, 5, 24, 19,
70 7, 8, 13, 9, 27 ]
71
72 racc_action_check = [
73 0, 0, 24, 24, 0, 0, 24, 24, 5, 5,
74 7, 7, 5, 5, 7, 7, 22, 22, 19, 19,
75 22, 22, 19, 19, 10, 10, 11, 10, 10, 10,
76 16, 16, 18, 9, 16, 16, 13, 13, 20, 13,
77 13, 13, 8, 1, 26 ]
78
79 racc_action_pointer = [
80 -2, 43, nil, nil, nil, 6, nil, 8, 34, 33,
81 22, 22, nil, 34, nil, nil, 28, nil, 27, 16,
82 30, nil, 14, nil, 0, nil, 35, nil ]
83
84 racc_action_default = [
85 -14, -14, -1, -2, -4, -14, -5, -14, -14, -14,
86 -6, -14, -9, -14, 28, -8, -14, -3, -11, -14,
87 -14, -7, -14, -12, -14, -13, -14, -10 ]
88
89 racc_goto_table = [
90 1, 11, 20, nil, nil, nil, 15, 12, nil, nil,
91 nil, nil, nil, 18, nil, nil, 21, nil, nil, 23,
92 nil, nil, 25, nil, 26 ]
93
94 racc_goto_check = [
95 1, 3, 6, nil, nil, nil, 3, 1, nil, nil,
96 nil, nil, nil, 1, nil, nil, 1, nil, nil, 1,
97 nil, nil, 1, nil, 1 ]
98
99 racc_goto_pointer = [
100 nil, 0, nil, -4, nil, nil, -11 ]
101
102 racc_goto_default = [
103 nil, 10, 2, nil, 4, 6, nil ]
104
105 racc_token_table = {
106 false => 0,
107 Object.new => 1,
108 :atom => 2,
109 "(" => 3,
110 ")" => 4,
111 "." => 5,
112 "'" => 6,
113 "{" => 7,
114 "|" => 8,
115 "}" => 9 }
116
117 racc_use_result_var = true
118
119 racc_nt_base = 10
120
121 Racc_arg = [
122 racc_action_table,
123 racc_action_check,
124 racc_action_default,
125 racc_action_pointer,
126 racc_goto_table,
127 racc_goto_check,
128 racc_goto_default,
129 racc_goto_pointer,
130 racc_nt_base,
131 racc_reduce_table,
132 racc_token_table,
133 racc_shift_n,
134 racc_reduce_n,
135 racc_use_result_var ]
136
137 Racc_token_to_s_table = [
138 '$end',
139 'error',
140 'atom',
141 '"("',
142 '")"',
143 '"."',
144 '"""',
145 '"{"',
146 '"|"',
147 '"}"',
148 '$start',
149 'expr',
150 'pair',
151 'list',
152 'quote',
153 'function',
154 'params']
155
156 Racc_debug_parser = false
157
158 ##### racc system variables end #####
159
160 # reduce 0 omitted
161
162 # reduce 1 omitted
163
164 # reduce 2 omitted
165
166 module_eval <<'.,.,', 'misp.y', 7
167 def _reduce_3( val, _values, result )
168 result = val[1]
169 result
170 end
171 .,.,
172
173 # reduce 4 omitted
174
175 # reduce 5 omitted
176
177 module_eval <<'.,.,', 'misp.y', 10
178 def _reduce_6( val, _values, result )
179 result = p(val[0])
180 result
181 end
182 .,.,
183
184 module_eval <<'.,.,', 'misp.y', 11
185 def _reduce_7( val, _values, result )
186 result = p(val[0], val[2])
187 result
188 end
189 .,.,
190
191 module_eval <<'.,.,', 'misp.y', 12
192 def _reduce_8( val, _values, result )
193 result = p(val[0], val[1])
194 result
195 end
196 .,.,
197
198 module_eval <<'.,.,', 'misp.y', 13
199 def _reduce_9( val, _values, result )
200 result = p(:quote, p(val[1]))
201 result
202 end
203 .,.,
204
205 module_eval <<'.,.,', 'misp.y', 14
206 def _reduce_10( val, _values, result )
207 result = p(:fn, p(val[2], p(val[4])))
208 result
209 end
210 .,.,
211
212 module_eval <<'.,.,', 'misp.y', 15
213 def _reduce_11( val, _values, result )
214 result = p(val[0])
215 result
216 end
217 .,.,
218
219 module_eval <<'.,.,', 'misp.y', 16
220 def _reduce_12( val, _values, result )
221 result = val[1]
222 result
223 end
224 .,.,
225
226 module_eval <<'.,.,', 'misp.y', 17
227 def _reduce_13( val, _values, result )
228 result = p(val[0], val[2])
229 result
230 end
231 .,.,
232
233 def _reduce_none( val, _values, result )
234 result
235 end
236
237 end # class Parser
238
239 end # module Misp
Generated using the rcov code coverage analysis tool for Ruby version 0.4.1.