source: proto/pablo/input/test/visitors/AdvanceCombinerTransformer/advance.pablo @ 2642

Last change on this file since 2642 was 2642, checked in by ksherdy, 6 years ago

Updated compiler vistor/transformer naming convention. By convention, visitors do not modify the AST, whereas transformers modify the AST.

File size: 1.3 KB
Line 
1function void Test() {
2        var stream temp;
3        var stream X = 0;
4       
5        temp = pablo.Advance(X);                       
6        temp = pablo.Advance(X);                       
7       
8        temp = Advance(X,2);                            // Expected
9        temp = Advance(Advance(X));             // Translated to Expected
10
11        temp = Advance(X,2);                            // Expected
12        temp = Advance(pablo.Advance(X));       // Translated to Expected
13       
14        temp = Advance(X,3);
15        temp = Advance(Advance(X,2));
16       
17       
18        temp = Advance(X,3);
19        temp = Advance(pablo.Advance(X,2));
20
21        temp = pablo.Advance(X,2);
22        temp = pablo.Advance(Advance(X));
23       
24        temp = pablo.Advance(X,2);
25        temp = pablo.Advance(pablo.Advance(X));
26       
27        temp = pablo.Advance(X,3);
28        temp = pablo.Advance(Advance(X,2));
29       
30        temp = Advance(X,3);
31        temp = Advance(pablo.Advance(X,2));
32
33        temp = Advance(X,3);
34        temp = Advance(Advance(X),2);
35       
36        temp = Advance(X,3);
37        temp = Advance(pablo.Advance(X),2);
38       
39        temp = Advance(X,4);
40        temp = Advance(Advance(X,2),2);
41       
42        temp = Advance(X,4);
43        temp = Advance(pablo.Advance(X,2),2);
44
45        temp = pablo.Advance(X,3);
46        temp = pablo.Advance(Advance(X),2);
47       
48        temp = pablo.Advance(X,3);
49        temp = pablo.Advance(pablo.Advance(X),2);
50       
51        temp = pablo.Advance(X,4);
52        temp = pablo.Advance(Advance(X,2),2);   
53       
54        temp = pablo.Advance(X,4);
55        temp = pablo.Advance(pablo.Advance(X,2),2);
56       
57        temp = Advance(X,3);
58        temp = Advance(Advance(Advance(X)));
59               
60}
Note: See TracBrowser for help on using the repository browser.