stage1_2/iec.flex
changeset 177 697562a5da7c
parent 175 dadda1b5401e
child 257 90782e241346
--- a/stage1_2/iec.flex	Tue May 19 16:31:35 2009 +0200
+++ b/stage1_2/iec.flex	Mon May 25 12:17:10 2009 +0200
@@ -1122,7 +1122,6 @@
 WSTRING		return WSTRING;		/* Keyword (Data Type) */
 STRING		return STRING;		/* Keyword (Data Type) */
 BOOL		return BOOL;		/* Keyword (Data Type) */
-
 TIME		return TIME;		/* Keyword (Data Type) */
 DATE		return DATE;		/* Keyword (Data Type) */
 DT		return DT;		/* Keyword (Data Type) */
@@ -1389,6 +1388,20 @@
 EXIT		return EXIT;		/* Keyword */
 
 
+	/*****************************************************************/
+	/* Keywords defined in "Safety Software Technical Specification" */
+	/*****************************************************************/
+        /* 
+         * NOTE: The following keywords are define in 
+         *       "Safety Software Technical Specification,
+         *        Part 1: Concepts and Function Blocks,  
+         *        Version 1.0 – Official Release"
+         *        written by PLCopen - Technical Committee 5
+         *
+         *        We only support these extensions and keywords
+         *        if the apropriate command line option is given.
+         */
+SAFEBOOL	{if (get_opt_safe_extensions()) {return SAFEBOOL;} else{REJECT;}}	/* Keyword (Data Type) */ 
 
 
 
@@ -1566,7 +1579,6 @@
 int get_direct_variable_token(const char *direct_variable_str) {return 0;}
 
 
-
 int main(int argc, char **argv) {
 
   FILE *in_file;