Home | History | Annotate | Download | only in Antlr3.Runtime.Tests

Lines Matching full:103

73 		/// Test a tree with four nodes - ^(101 ^(102 103) 104)
79 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103)));
83 string expected = " 101 102 103 104";
87 expected = " 101 2 102 2 103 3 104 3";
99 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103)));
108 string expected = " 101 102 103 104 105";
112 expected = " 101 2 102 2 103 3 104 3 105";
124 root.AddChild(new CommonTree(new CommonToken(103)));
127 string expected = " 101 102 103";
131 expected = " 101 102 103";
172 // ^(101 ^(102 103) 104)
175 t.GetChild(0).AddChild(new CommonTree(new CommonToken(103)));
183 Assert.AreEqual(103, ((ITree)stream.LT(5)).Type);
195 // ^(101 ^(102 103 ^(106 107) ) 104 105)
197 // Sequence of types: 101 DN 102 DN 103 106 DN 107 Up Up 104 105 Up EndOfFile
201 r1.AddChild(new CommonTree(new CommonToken(103)));
232 // ^(101 ^(102 103 ^(106 107) ) 104 105)
234 // Sequence of types: 101 DN 102 DN 103 106 DN 107 Up Up 104 105 Up EndOfFile
238 r1.AddChild(new CommonTree(new CommonToken(103)));
279 // ^(101 ^(102 103 ^(106 107) ) 104 105)
281 // Sequence of types: 101 DN 102 DN 103 106 DN 107 Up Up 104 105 Up EndOfFile
285 r1.AddChild(new CommonTree(new CommonToken(103)));
299 stream.Consume(); // consume 103
306 // stop at 103 and rewind to start
320 // ^(101 ^(102 103 ^(106 107) ) 104 105)
322 // Sequence of types: 101 DN 102 DN 103 106 DN 107 Up Up 104 105 Up EndOfFile
326 r1.AddChild(new CommonTree(new CommonToken(103)));
348 // ^(101 ^(102 103 ^(106 107) ) 104 105)
350 // Sequence of types: 101 DN 102 DN 103 106 DN 107 Up Up 104 105 Up EndOfFile
354 r1.AddChild(new CommonTree(new CommonToken(103)));
373 // ^(101 ^(102 103) ^(104 105) ^(106 107) 108 109)
375 // Sequence of types: 101 DN 102 DN 103 Up 104 DN 105 Up 106 DN 107 Up 108 109 Up
378 r1.AddChild(new CommonTree(new CommonToken(103)));
390 String expecting = " 101 2 102 2 103 3 104 2 105 3 106 2 107 3 108 109 3";
409 Assert.AreEqual(103, ((ITree)stream.LT(1)).Type);
410 stream.Consume(); // consume 103
420 // ^(101 ^(102 103) ^(104 105) ^(106 107) 108 109)
422 // Sequence of types: 101 DN 102 DN 103 Up 104 DN 105 Up 106 DN 107 Up 108 109 Up
425 r1.AddChild(new CommonTree(new CommonToken(103)));
454 Assert.AreEqual(103
455 stream.Consume(); // consume 103
465 stream.Consume(); // consume 103
479 // ^(101 ^(102 103) ^(104 105) ^(106 107) 108 109)
481 // Sequence of types: 101 DN 102 DN 103 Up 104 DN 105 Up 106 DN 107 Up 108 109 Up
484 r1.AddChild(new CommonTree(new CommonToken(103)));
511 Assert.AreEqual(103, ((ITree)stream.LT(1)).Type);
512 stream.Consume(); // consume 103
525 stream.Consume(); // consume 103