source: proto/pablo/input/test/expr2.pablo @ 2363

Last change on this file since 2363 was 2363, checked in by ksherdy, 7 years ago

Updated grammar tests.

File size: 549 bytes
Line 
1function void PostfixExpressions() {
2
3        // records
4        temp4 = temp1.temp2;
5        temp4 = temp1.temp2.temp3;
6       
7        temp1.temp2 = temp4;
8        temp1.temp2.temp3 = temp4;
9       
10        // tuples
11        temp4 = temp[0];
12        temp4 = temp.temp1[0];
13        temp4 = temp[0].temp1[1];
14        temp4 = temp.temp1[0].temp3;
15       
16        temp[0] = temp4;
17        temp.temp1[0] = temp4;
18        temp[0].temp1[1] = temp4;
19        temp.temp1[0].temp3 = temp4;
20       
21        // functions and casts
22       
23        temp4 = functionCall();
24        temp4 = functionCall(a,0);
25        temp4 = functionCall("string");
26        temp4 = library.functionCall();
27        temp4 = path.to.functionCall();
28       
29};
Note: See TracBrowser for help on using the repository browser.