absyntax_utils/search_varfb_instance_type.cc
changeset 616 0c7663fdc8d3
parent 540 5993247a1c91
child 619 f8c9ac5c529a
equal deleted inserted replaced
615:509b79602f7c 616:0c7663fdc8d3
   140   current_basetype_id   = search_base_type.get_basetype_id  (current_type_id);
   140   current_basetype_id   = search_base_type.get_basetype_id  (current_type_id);
   141     
   141     
   142   /* What if the variable has not been declared?  Then this should not be a compiler error! 
   142   /* What if the variable has not been declared?  Then this should not be a compiler error! 
   143    * However, currently stage 2 of the compiler already detects when variables have not been delcared,
   143    * However, currently stage 2 of the compiler already detects when variables have not been delcared,
   144    * so if the variable's declaration is not found, then that means that we have an internal compiler error!
   144    * so if the variable's declaration is not found, then that means that we have an internal compiler error!
       
   145    * 
       
   146    * Actually, the above is not true anymore. See the use of the any_symbolic_variable in iec_bison.yy
       
   147    *  - when defining the delay of a delayed action association in SFC
       
   148    *  - in program connections inside configurations (will this search_varfb_instance_type_c class be called to handle this??)
   145    */
   149    */
   146   if (NULL == current_type_id) ERROR; 
   150   // if (NULL == current_type_id) ERROR; 
   147 
   151 
   148   return NULL;
   152   return NULL;
   149 }
   153 }
   150 
   154 
   151 
   155