Lines Matching refs:r
40 r = self.parse("1 + 2", 'r1')
42 r.tree.toStringTree(),
48 r = self.parse("assert 2+3;", 'r2')
50 r.tree.toStringTree(),
56 r = self.parse("assert 2+3 : 5;", 'r2')
58 r.tree.toStringTree(),
64 r = self.parse("if 1 fooze", 'r3')
66 r.tree.toStringTree(),
72 r = self.parse("if 1 fooze else fooze", 'r3')
74 r.tree.toStringTree(),
80 r = self.parse("while 2 fooze", 'r4')
82 r.tree.toStringTree(),
88 r = self.parse("return;", 'r5')
90 r.tree.toStringTree(),
96 r = self.parse("return 2+3;", 'r5')
98 r.tree.toStringTree(),
104 r = self.parse("3", 'r6')
106 r.tree.toStringTree(),
112 r = self.parse("3 a", 'r6')
114 r.tree.toStringTree(),
120 r = self.parse("3", 'r7')
121 self.assertIsNone(r.tree)
125 r = self.parse("var foo:bool", 'r8')
127 r.tree.toStringTree(),
133 r = self.parse("int foo;", 'r9')
135 r.tree.toStringTree(),
141 r = self.parse("10", 'r10')
143 r.tree.toStringTree(),
149 r = self.parse("1+2", 'r11')
151 r.tree.toStringTree(),
157 r = self.parse("", 'r11')
159 r.tree.toStringTree(),
165 r = self.parse("foo", 'r12')
167 r.tree.toStringTree(),
173 r = self.parse("foo, bar, gnurz", 'r12')
175 r.tree.toStringTree(),
181 r = self.parse("int foo;", 'r13')
183 r.tree.toStringTree(),
189 r = self.parse("bool foo, bar, gnurz;", 'r13')
191 r.tree.toStringTree(),
197 r = self.parse("1+2 int", 'r14')
199 r.tree.toStringTree(),
205 r = self.parse("1+2 int bool", 'r14')
207 r.tree.toStringTree(),
213 r = self.parse("int bool", 'r14')
215 r.tree.toStringTree(),
221 r = self.parse("fooze fooze int bool", 'r14')
223 r.tree.toStringTree(),
229 r = self.parse("7+9 fooze fooze int bool", 'r14')
231 r.tree.toStringTree(),
237 r = self.parse("7", 'r15')
239 r.tree.toStringTree(),
245 r = self.parse("int foo", 'r16')
247 r.tree.toStringTree(),
253 r = self.parse("int foo, bar, gnurz", 'r16')
256 r.tree.toStringTree(),
262 r = self.parse("for ( fooze ; 1 + 2 ; fooze ) fooze", 'r17')
264 r.tree.toStringTree(),
270 r = self.parse("for", 'r18')
272 r.tree.toStringTree(),
278 r = self.parse("for", 'r19')
280 r.tree.toStringTree(),
286 r = self.parse("for", 'r20')
288 r.tree.toStringTree(),
294 r = self.parse("for", 'r21')
296 r.tree.toStringTree(),
302 r = self.parse("for", 'r22')
304 r.tree.toStringTree(),
310 r = self.parse("for", 'r23')
312 r.tree.toStringTree(),
318 r = self.parse("fooze 1 + 2", 'r24')
320 r.tree.toStringTree(),
326 r = self.parse("fooze, fooze2 1 + 2", 'r25')
328 r.tree.toStringTree(),
334 r = self.parse("fooze, fooze2", 'r26')
336 r.tree.toStringTree(),
342 r = self.parse("fooze 1 + 2", 'r27')
344 r.tree.toStringTree(),
350 r = self.parse("foo28a", 'r28')
351 self.assertIsNone(r.tree)
368 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=0)
370 r.tree.toStringTree(),
376 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=1)
378 r.tree.toStringTree(),
384 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=2)
386 r.tree.toStringTree(),
392 r = self.parse("gnurz 32", 'r32', [1], flag=2)
394 r.tree.toStringTree(),
400 r = self.parse("gnurz 32", 'r32', [2], flag=2)
402 r.tree.toStringTree(),
408 r = self.parse("gnurz 32", 'r32', [3], flag=2)
409 self.assertIsNone(r.tree)
413 r = self.parse("public private fooze", 'r33')
415 r.tree.toStringTree(),
421 r = self.parse("public class gnurz { fooze fooze2 }", 'r34')
423 r.tree.toStringTree(),
429 … r = self.parse("public class gnurz extends bool implements int, bool { fooze fooze2 }", 'r34')
431 r.tree.toStringTree(),
441 r = self.parse("if ( 1 + 2 ) fooze", 'r36')
443 r.tree.toStringTree(),
449 r = self.parse("if ( 1 + 2 ) fooze else fooze2", 'r36')
451 r.tree.toStringTree(),
457 r = self.parse("1 + 2 + 3", 'r37')
459 r.tree.toStringTree(),
465 r = self.parse("1 + 2 + 3", 'r38')
467 r.tree.toStringTree(),
473 r = self.parse("gnurz[1]", 'r39')
475 r.tree.toStringTree(),
481 r = self.parse("gnurz(2)", 'r39')
483 r.tree.toStringTree(),
489 r = self.parse("gnurz.gnarz", 'r39')
491 r.tree.toStringTree(),
497 r = self.parse("gnurz.gnarz.gnorz", 'r39')
499 r.tree.toStringTree(),
505 r = self.parse("1 + 2 + 3;", 'r40')
507 r.tree.toStringTree(),
513 r = self.parse("1 + 2 + 3;", 'r41')
515 r.tree.toStringTree(),
521 r = self.parse("gnurz, gnarz, gnorz", 'r42')
523 r.tree.toStringTree(),
529 r = self.parse("gnurz, gnarz, gnorz", 'r43')
530 self.assertIsNone(r.tree)
532 r.res,
538 r = self.parse("gnurz, gnarz, gnorz", 'r44')
540 r.tree.toStringTree(),
546 r = self.parse("gnurz", 'r45')
548 r.tree.toStringTree(),
554 r = self.parse("gnurz, gnarz, gnorz", 'r46')
555 self.assertIsNone(r.tree)
557 r.res,
563 r = self.parse("gnurz, gnarz, gnorz", 'r47')
565 r.tree.toStringTree(),
571 r = self.parse("gnurz, gnarz, gnorz", 'r48')
573 r.tree.toStringTree(),
579 r = self.parse("gnurz gnorz", 'r49')
581 r.tree.toStringTree(),
587 r = self.parse("gnurz", 'r50')
589 r.tree.toStringTree(),
595 r = self.parse("gnurza gnurzb gnurzc", 'r51')
597 r.res.toStringTree(),
603 r = self.parse("gnurz", 'r52')
605 r.res.toStringTree(),
611 r = self.parse("gnurz", 'r53')
613 r.res.toStringTree(),
619 r = self.parse("gnurza 1 + 2 gnurzb", 'r54')
621 r.tree.toStringTree(),
627 r = self.parse("public private 1 + 2", 'r55')
629 r.tree.toStringTree(),
635 r = self.parse("public fooze", 'r55')
637 r.tree.toStringTree(),
643 r = self.parse("a b c d", 'r56')
645 r.tree.toStringTree(),
651 r = self.parse("a b c d", 'r57')
653 r.tree.toStringTree(),
659 r = self.parse("a b c fooze", 'r59')
661 r.tree.toStringTree(),