Lines Matching refs:parse
25 def parse(self, text, method, rArgs=(), **kwargs): member in t042ast
40 r = self.parse("1 + 2", 'r1')
48 r = self.parse("assert 2+3;", 'r2')
56 r = self.parse("assert 2+3 : 5;", 'r2')
64 r = self.parse("if 1 fooze", 'r3')
72 r = self.parse("if 1 fooze else fooze", 'r3')
80 r = self.parse("while 2 fooze", 'r4')
88 r = self.parse("return;", 'r5')
96 r = self.parse("return 2+3;", 'r5')
104 r = self.parse("3", 'r6')
112 r = self.parse("3 a", 'r6')
120 r = self.parse("3", 'r7')
125 r = self.parse("var foo:bool", 'r8')
133 r = self.parse("int foo;", 'r9')
141 r = self.parse("10", 'r10')
149 r = self.parse("1+2", 'r11')
157 r = self.parse("", 'r11')
165 r = self.parse("foo", 'r12')
173 r = self.parse("foo, bar, gnurz", 'r12')
181 r = self.parse("int foo;", 'r13')
189 r = self.parse("bool foo, bar, gnurz;", 'r13')
197 r = self.parse("1+2 int", 'r14')
205 r = self.parse("1+2 int bool", 'r14')
213 r = self.parse("int bool", 'r14')
221 r = self.parse("fooze fooze int bool", 'r14')
229 r = self.parse("7+9 fooze fooze int bool", 'r14')
237 r = self.parse("7", 'r15')
245 r = self.parse("int foo", 'r16')
253 r = self.parse("int foo, bar, gnurz", 'r16')
262 r = self.parse("for ( fooze ; 1 + 2 ; fooze ) fooze", 'r17')
270 r = self.parse("for", 'r18')
278 r = self.parse("for", 'r19')
286 r = self.parse("for", 'r20')
294 r = self.parse("for", 'r21')
302 r = self.parse("for", 'r22')
310 r = self.parse("for", 'r23')
318 r = self.parse("fooze 1 + 2", 'r24')
326 r = self.parse("fooze, fooze2 1 + 2", 'r25')
334 r = self.parse("fooze, fooze2", 'r26')
342 r = self.parse("fooze 1 + 2", 'r27')
350 r = self.parse("foo28a", 'r28')
355 self.assertRaises(RuntimeError, self.parse, "", 'r29')
368 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=0)
376 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=1)
384 r = self.parse("public int gnurz = 1 + 2;", 'r31', flag=2)
392 r = self.parse("gnurz 32", 'r32', [1], flag=2)
400 r = self.parse("gnurz 32", 'r32', [2], flag=2)
408 r = self.parse("gnurz 32", 'r32', [3], flag=2)
413 r = self.parse("public private fooze", 'r33')
421 r = self.parse("public class gnurz { fooze fooze2 }", 'r34')
429 … r = self.parse("public class gnurz extends bool implements int, bool { fooze fooze2 }", 'r34')
437 self.assertRaises(RuntimeError, self.parse, "{ extends }", 'r35')
441 r = self.parse("if ( 1 + 2 ) fooze", 'r36')
449 r = self.parse("if ( 1 + 2 ) fooze else fooze2", 'r36')
457 r = self.parse("1 + 2 + 3", 'r37')
465 r = self.parse("1 + 2 + 3", 'r38')
473 r = self.parse("gnurz[1]", 'r39')
481 r = self.parse("gnurz(2)", 'r39')
489 r = self.parse("gnurz.gnarz", 'r39')
497 r = self.parse("gnurz.gnarz.gnorz", 'r39')
505 r = self.parse("1 + 2 + 3;", 'r40')
513 r = self.parse("1 + 2 + 3;", 'r41')
521 r = self.parse("gnurz, gnarz, gnorz", 'r42')
529 r = self.parse("gnurz, gnarz, gnorz", 'r43')
538 r = self.parse("gnurz, gnarz, gnorz", 'r44')
546 r = self.parse("gnurz", 'r45')
554 r = self.parse("gnurz, gnarz, gnorz", 'r46')
563 r = self.parse("gnurz, gnarz, gnorz", 'r47')
571 r = self.parse("gnurz, gnarz, gnorz", 'r48')
579 r = self.parse("gnurz gnorz", 'r49')
587 r = self.parse("gnurz", 'r50')
595 r = self.parse("gnurza gnurzb gnurzc", 'r51')
603 r = self.parse("gnurz", 'r52')
611 r = self.parse("gnurz", 'r53')
619 r = self.parse("gnurza 1 + 2 gnurzb", 'r54')
627 r = self.parse("public private 1 + 2", 'r55')
635 r = self.parse("public fooze", 'r55')
643 r = self.parse("a b c d", 'r56')
651 r = self.parse("a b c d", 'r57')
659 r = self.parse("a b c fooze", 'r59')