stage1_2/iec.flex
changeset 177 697562a5da7c
parent 175 dadda1b5401e
child 257 90782e241346
equal deleted inserted replaced
176:bef3cc16c064 177:697562a5da7c
  1120 
  1120 
  1121 
  1121 
  1122 WSTRING		return WSTRING;		/* Keyword (Data Type) */
  1122 WSTRING		return WSTRING;		/* Keyword (Data Type) */
  1123 STRING		return STRING;		/* Keyword (Data Type) */
  1123 STRING		return STRING;		/* Keyword (Data Type) */
  1124 BOOL		return BOOL;		/* Keyword (Data Type) */
  1124 BOOL		return BOOL;		/* Keyword (Data Type) */
  1125 
       
  1126 TIME		return TIME;		/* Keyword (Data Type) */
  1125 TIME		return TIME;		/* Keyword (Data Type) */
  1127 DATE		return DATE;		/* Keyword (Data Type) */
  1126 DATE		return DATE;		/* Keyword (Data Type) */
  1128 DT		return DT;		/* Keyword (Data Type) */
  1127 DT		return DT;		/* Keyword (Data Type) */
  1129 TOD		return TOD;		/* Keyword (Data Type) */
  1128 TOD		return TOD;		/* Keyword (Data Type) */
  1130 DATE_AND_TIME	return DATE_AND_TIME;	/* Keyword (Data Type) */
  1129 DATE_AND_TIME	return DATE_AND_TIME;	/* Keyword (Data Type) */
  1387 END_REPEAT	return END_REPEAT;	/* Keyword */
  1386 END_REPEAT	return END_REPEAT;	/* Keyword */
  1388 
  1387 
  1389 EXIT		return EXIT;		/* Keyword */
  1388 EXIT		return EXIT;		/* Keyword */
  1390 
  1389 
  1391 
  1390 
       
  1391 	/*****************************************************************/
       
  1392 	/* Keywords defined in "Safety Software Technical Specification" */
       
  1393 	/*****************************************************************/
       
  1394         /* 
       
  1395          * NOTE: The following keywords are define in 
       
  1396          *       "Safety Software Technical Specification,
       
  1397          *        Part 1: Concepts and Function Blocks,  
       
  1398          *        Version 1.0 – Official Release"
       
  1399          *        written by PLCopen - Technical Committee 5
       
  1400          *
       
  1401          *        We only support these extensions and keywords
       
  1402          *        if the apropriate command line option is given.
       
  1403          */
       
  1404 SAFEBOOL	{if (get_opt_safe_extensions()) {return SAFEBOOL;} else{REJECT;}}	/* Keyword (Data Type) */ 
  1392 
  1405 
  1393 
  1406 
  1394 
  1407 
  1395 	/********************************************************/
  1408 	/********************************************************/
  1396 	/********************************************************/
  1409 	/********************************************************/
  1562 
  1575 
  1563 
  1576 
  1564 
  1577 
  1565 int get_identifier_token(const char *identifier_str) {return 0;}
  1578 int get_identifier_token(const char *identifier_str) {return 0;}
  1566 int get_direct_variable_token(const char *direct_variable_str) {return 0;}
  1579 int get_direct_variable_token(const char *direct_variable_str) {return 0;}
  1567 
       
  1568 
  1580 
  1569 
  1581 
  1570 int main(int argc, char **argv) {
  1582 int main(int argc, char **argv) {
  1571 
  1583 
  1572   FILE *in_file;
  1584   FILE *in_file;