Lines Matching full:stream
22 stream = new_stream(t)
25 found = nodes_only_string(stream)
30 found = stream.inspect
65 stream = new_stream(t)
68 found = nodes_only_string(stream)
72 found = stream.inspect
88 stream = CommonTreeNodeStream.new(root)
91 found = nodes_only_string(stream)
95 found = stream.inspect
106 stream = CommonTreeNodeStream.new( root )
109 found = nodes_only_string(stream)
113 found = stream.inspect
122 stream = CommonTreeNodeStream.new(root)
125 found = nodes_only_string(stream)
129 found = stream.inspect
137 stream = new_stream(t)
139 found = nodes_only_string(stream)
143 found = stream.inspect
154 stream = new_stream(t)
156 stream.look(index + 1).type.should == type
158 stream.look(100).type.should == EOF
173 stream = CommonTreeNodeStream.new(r0)
174 m = stream.mark
175 13.times { stream.look(1); stream.consume } # consume until end
177 stream.look(1).type.should == EOF
178 stream.look(-1).type.should == UP
179 stream.rewind(m)
181 13.times { stream.look(1); stream.consume } # consume until end
183 stream.look(1).type.should == EOF
184 stream.look(-1).type.should == UP
199 stream = CommonTreeNodeStream.new(r0)
200 7.times { stream.consume }
202 stream.look(1).type.should == 107
203 m = stream.mark
204 4.times { stream.consume }
205 stream.rewind(m)
208 stream.look(1).type.should == val
209 stream.consume
213 stream.look(1).type.should == val
214 stream.consume
216 stream.look(1).type.should == EOF
217 stream.look(-1).type.should == UP
232 stream = CommonTreeNodeStream.new(r0)
233 m = stream.mark
234 2.times { stream.consume }
235 m2 = stream.mark
236 4.times { stream.consume }
237 stream.rewind(m2)
238 stream.look(1).type.should == 102
239 stream.consume
240 stream.look(1).type.should == DOWN
241 stream.consume
243 stream.rewind(m)
245 stream.look(1).type.should == val
246 stream.consume
248 stream.look(1).type.should == DOWN
253 # stream has 7 real + 6 nav nodes
266 stream = CommonTreeNodeStream.new(r0)
267 3.times { stream.consume }
268 stream.seek(7)
269 stream.look(1).type.should == 107
270 3.times { stream.consume }
271 stream.look(1).type.should == 104
285 stream = CommonTreeNodeStream.new(r0)
286 stream.seek(7)
287 stream.look(1).type.should == 107
288 3.times { stream.consume }
289 stream.look(1).type.should == 104
337 stream = CommonTreeNodeStream.new(r0)
341 found = stream.inspect
346 index_of_107.times { stream.consume }
348 stream.look(1).type.should == 107
349 stream.push(index_of_102)
350 stream.look(1).type.should == 102
351 stream.consume
352 stream.look(1).type.should == DOWN
353 stream.consume
354 stream.look(1).type.should == 103
355 stream.consume
356 stream.look(1).type.should == UP
357 stream.pop
358 stream.look(1).type.should == 107
375 stream = CommonTreeNodeStream.new(r0)
380 index_of_107.times { stream.consume }
382 stream.look(1).type.should == 107
383 stream.push(index_of_102)
385 stream.look(1).type.should == val
386 stream.consume
390 stream.push(index_of_104)
392 stream.look(1).type.should == val
393 stream.consume
395 stream.look(1).type.should == UP
396 stream.pop
398 stream.look(1).type.should == UP
399 stream.pop
400 stream.look(1).type.should == 107
417 stream = CommonTreeNodeStream.new(r0)
418 stream.consume until stream.peek(1) == EOF
422 stream.look(1).type.should == EOF
424 stream.push(index_of_102)
426 stream.look(1).type.should == val
427 stream.consume
429 stream.look(1).type.should == UP
431 stream.pop
432 stream.look(1).type.should == EOF
434 stream.push(index_of_104)
436 stream.look(1).type.should == val
437 stream.consume
439 stream.look(1).type.should == UP
441 stream.pop
442 stream.look(1).type.should == EOF