in lvalue, add check for REF() fucntion invocation, and the NULL literal
authormjsousa
Sun, 10 Aug 2014 08:27:28 +0100
changeset 926 b8538c5d0aeb
parent 925 a942c55fb769
child 927 39b596670e33
in lvalue, add check for REF() fucntion invocation, and the NULL literal
stage3/lvalue_check.cc
--- a/stage3/lvalue_check.cc	Sat Aug 09 11:22:57 2014 +0100
+++ b/stage3/lvalue_check.cc	Sun Aug 10 08:27:28 2014 +0100
@@ -170,6 +170,10 @@
 	     /*********************/
 	     /* B 1.2 - Constants */
 	     /*********************/
+	     /*********************************/
+	     /* B 1.2.XX - Reference Literals */
+	     /*********************************/
+	     (typeid( *lvalue ) == typeid( ref_value_null_literal_c       )) || /* defined in IEC 61131-3 v3 - Basically the 'NULL' keyword! */
 	     /******************************/
 	     /* B 1.2.1 - Numeric Literals */
 	     /******************************/
@@ -212,6 +216,7 @@
 	     /***********************/
 	     /* B 3.1 - Expressions */
 	     /***********************/
+	     (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! */
 	     (typeid( *lvalue ) == typeid( or_expression_c                )) ||
 	     (typeid( *lvalue ) == typeid( xor_expression_c               )) ||
 	     (typeid( *lvalue ) == typeid( and_expression_c               )) ||