stage1_2/iec_bison.yy
changeset 667 bd1360f29f15
parent 643 1cc0e1ca2aad
parent 627 e7caa7d32ef5
child 690 6156ee2b4e32
equal deleted inserted replaced
666:8ba9ec4bae50 667:bd1360f29f15
  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
  5241 qualifier:
  5243 qualifier:
  5242   N		{$$ = new qualifier_c(strdup("N"), locloc(@$));}
  5244   N		{$$ = new qualifier_c(strdup("N"), locloc(@$));}
  5243 | R		{$$ = new qualifier_c(strdup("R"), locloc(@$));}
  5245 | R		{$$ = new qualifier_c(strdup("R"), locloc(@$));}
  5244 | S		{$$ = new qualifier_c(strdup("S"), locloc(@$));}
  5246 | S		{$$ = new qualifier_c(strdup("S"), locloc(@$));}
  5245 | P		{$$ = new qualifier_c(strdup("P"), locloc(@$));}
  5247 | P		{$$ = new qualifier_c(strdup("P"), locloc(@$));}
       
  5248 | P0	{$$ = new qualifier_c(strdup("P0"), locloc(@$));}
       
  5249 | P1	{$$ = new qualifier_c(strdup("P1"), locloc(@$));}
  5246 ;
  5250 ;
  5247 
  5251 
  5248 timed_qualifier:
  5252 timed_qualifier:
  5249   L		{$$ = new timed_qualifier_c(strdup("L"), locloc(@$));}
  5253   L		{$$ = new timed_qualifier_c(strdup("L"), locloc(@$));}
  5250 | D		{$$ = new timed_qualifier_c(strdup("D"), locloc(@$));}
  5254 | D		{$$ = new timed_qualifier_c(strdup("D"), locloc(@$));}