source: proto/pabloj/trunk/input/test/visitors/AugmentedAssignmentXFormer/augmentedAssignment.pablos @ 2981

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

Grammar updates. Eliminated optional fw on stream types. Removed typedef.

File size: 336 bytes
Line 
1function void Test() {
2        var stream<1> x;
3        var stream<1> y;
4        var stream<1> z;
5
6        x = x | y;                      // Expected
7        x |= y;                         // Translated to Expected
8                         
9        x = x & y;                      // Expected
10        x &= y;                         // Translated to Expected
11       
12        x = x ^ y;
13        x ^= y;
14               
15        x =  x | y | z;
16        x |= y | z;
17       
18        x = x & y & z;
19        x &=  y & z;
20       
21        x =  x ^ y ^ z;
22        x ^=  y ^ z;
23
24}
Note: See TracBrowser for help on using the repository browser.