ADT
        ast-experimental
      
      
        
          | 
            Last change
 on this file since d697527 was             a33a5e2, checked in by caparsons <caparson@…>, 3 years ago           | 
        
        
          | 
             
added tests for the waituntil stmt 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            515 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [a33a5e2] | 1 | #include <select.hfa>
 | 
|---|
 | 2 | #include <future.hfa>
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 | future(int) A, B, C;
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | int main() {
 | 
|---|
 | 7 |     waituntil( A ) { printf("A1\n"); } or else { printf("else1\n"); }
 | 
|---|
 | 8 |     fulfil( A, 1 );
 | 
|---|
 | 9 |     waituntil( A ) { printf("A2\n"); } or else { printf("else2\n"); }
 | 
|---|
 | 10 |     reset( A );
 | 
|---|
 | 11 |     waituntil( A ) { printf("A3\n"); } or when(true) else { printf("else3\n"); }
 | 
|---|
 | 12 |     fulfil( A, 1 );
 | 
|---|
 | 13 |     waituntil( A ) { printf("A4\n"); } or when(false) else { printf("else4\n"); }
 | 
|---|
 | 14 |     reset( A );
 | 
|---|
 | 15 |     fulfil( A, 1 );
 | 
|---|
 | 16 |     waituntil( A ) { printf("A5\n"); }
 | 
|---|
 | 17 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.