stage3/lvalue_check.cc
changeset 926 b8538c5d0aeb
parent 846 24d0be6c31f7
child 971 8aee27d46208
equal deleted inserted replaced
925:a942c55fb769 926:b8538c5d0aeb
   168 	 */
   168 	 */
   169 	if ( 
   169 	if ( 
   170 	     /*********************/
   170 	     /*********************/
   171 	     /* B 1.2 - Constants */
   171 	     /* B 1.2 - Constants */
   172 	     /*********************/
   172 	     /*********************/
       
   173 	     /*********************************/
       
   174 	     /* B 1.2.XX - Reference Literals */
       
   175 	     /*********************************/
       
   176 	     (typeid( *lvalue ) == typeid( ref_value_null_literal_c       )) || /* defined in IEC 61131-3 v3 - Basically the 'NULL' keyword! */
   173 	     /******************************/
   177 	     /******************************/
   174 	     /* B 1.2.1 - Numeric Literals */
   178 	     /* B 1.2.1 - Numeric Literals */
   175 	     /******************************/
   179 	     /******************************/
   176 	     (typeid( *lvalue ) == typeid( real_c                         )) ||
   180 	     (typeid( *lvalue ) == typeid( real_c                         )) ||
   177 	     (typeid( *lvalue ) == typeid( integer_c                      )) ||
   181 	     (typeid( *lvalue ) == typeid( integer_c                      )) ||
   210 	     /* B.3 - Language ST (Structured Text) */
   214 	     /* B.3 - Language ST (Structured Text) */
   211 	     /***************************************/
   215 	     /***************************************/
   212 	     /***********************/
   216 	     /***********************/
   213 	     /* B 3.1 - Expressions */
   217 	     /* B 3.1 - Expressions */
   214 	     /***********************/
   218 	     /***********************/
       
   219 	     (typeid( *lvalue ) == typeid( ref_expression_c               )) || /* an extension to the IEC 61131-3 standard - based on the IEC 61131-3 v3 standard. Returns address of the variable! */
   215 	     (typeid( *lvalue ) == typeid( or_expression_c                )) ||
   220 	     (typeid( *lvalue ) == typeid( or_expression_c                )) ||
   216 	     (typeid( *lvalue ) == typeid( xor_expression_c               )) ||
   221 	     (typeid( *lvalue ) == typeid( xor_expression_c               )) ||
   217 	     (typeid( *lvalue ) == typeid( and_expression_c               )) ||
   222 	     (typeid( *lvalue ) == typeid( and_expression_c               )) ||
   218 	     (typeid( *lvalue ) == typeid( equ_expression_c               )) ||
   223 	     (typeid( *lvalue ) == typeid( equ_expression_c               )) ||
   219 	     (typeid( *lvalue ) == typeid( notequ_expression_c            )) ||
   224 	     (typeid( *lvalue ) == typeid( notequ_expression_c            )) ||