summaryrefslogtreecommitdiff
path: root/web/yacco2/diagrams/arbitrator.txt
blob: 5a24b1fa9a37ddeb5d3430cb02f565957a8822b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
,parallel-control-monitor{
  arbitrator-code
    // arbitration
    //              between
    //      x               y                       winner
    //      identifier      keyword                 keyword
    //      fp no           integer                 fp no
    //
    using namespace NS_pas_T_enum;
    {
     for(i=1;i<=ie;++i){
      if(To_judge->pp_accept_queue__[i].accept_token__->enumerated_id__ 
             == NS_pas_T_enum::T_Enum::T_T_keyword_){
	goto arbitrated_parameter;
      }
     }
     for(i=1;i<=ie;++i){
      if(To_judge->pp_accept_queue__[i].accept_token__->enumerated_id__ 
             == NS_pas_T_enum::T_Enum::T_T_fp_pt_no_){
	goto arbitrated_parameter;
      }
     }
    }
  ***
  }