stage1_2/iec_bison.yy
changeset 627 e7caa7d32ef5
parent 616 0c7663fdc8d3
child 667 bd1360f29f15
equal deleted inserted replaced
626:9f2cefb98e60 627:e7caa7d32ef5
  1018 %token DS
  1018 %token DS
  1019 %token SL
  1019 %token SL
  1020 
  1020 
  1021 %token N
  1021 %token N
  1022 %token P
  1022 %token P
       
  1023 %token P0
       
  1024 %token P1
  1023 /* NOTE: the following two clash with the R and S IL operators.
  1025 /* NOTE: the following two clash with the R and S IL operators.
  1024  * It will have to be handled when we include parsing of SFC...
  1026  * It will have to be handled when we include parsing of SFC...
  1025  */
  1027  */
  1026 /*
  1028 /*
  1027 %token R
  1029 %token R
  5253 qualifier:
  5255 qualifier:
  5254   N		{$$ = new qualifier_c(strdup("N"), locloc(@$));}
  5256   N		{$$ = new qualifier_c(strdup("N"), locloc(@$));}
  5255 | R		{$$ = new qualifier_c(strdup("R"), locloc(@$));}
  5257 | R		{$$ = new qualifier_c(strdup("R"), locloc(@$));}
  5256 | S		{$$ = new qualifier_c(strdup("S"), locloc(@$));}
  5258 | S		{$$ = new qualifier_c(strdup("S"), locloc(@$));}
  5257 | P		{$$ = new qualifier_c(strdup("P"), locloc(@$));}
  5259 | P		{$$ = new qualifier_c(strdup("P"), locloc(@$));}
       
  5260 | P0	{$$ = new qualifier_c(strdup("P0"), locloc(@$));}
       
  5261 | P1	{$$ = new qualifier_c(strdup("P1"), locloc(@$));}
  5258 ;
  5262 ;
  5259 
  5263 
  5260 timed_qualifier:
  5264 timed_qualifier:
  5261   L		{$$ = new timed_qualifier_c(strdup("L"), locloc(@$));}
  5265   L		{$$ = new timed_qualifier_c(strdup("L"), locloc(@$));}
  5262 | D		{$$ = new timed_qualifier_c(strdup("D"), locloc(@$));}
  5266 | D		{$$ = new timed_qualifier_c(strdup("D"), locloc(@$));}