stage4/generate_cc/search_expression_type.cc
changeset 22 08bcc40be1fa
parent 17 38754701ac41
child 32 289256ec66f1
equal deleted inserted replaced
21:ae19aa4ff2d9 22:08bcc40be1fa
   115     if (NULL != res) return res;
   115     if (NULL != res) return res;
   116     
   116     
   117     return NULL;
   117     return NULL;
   118   }
   118   }
   119 
   119 
       
   120 /*************************************/
       
   121 /* B 1.4.2 - Multi-element variables */
       
   122 /*************************************/
       
   123 
       
   124   void *visit(array_variable_c *symbol) {
       
   125     symbol_c *res;
       
   126     
       
   127     /* Nope, now we assume it is a variable, and determine its type... */
       
   128     res = search_varfb_instance_type->get_type(symbol);
       
   129     if (NULL != res) return res;
       
   130     
       
   131     return NULL;
       
   132   }
       
   133 
       
   134   void *visit(structured_variable_c *symbol) {
       
   135     symbol_c *res;
       
   136     
       
   137     /* Nope, now we assume it is a variable, and determine its type... */
       
   138     res = search_varfb_instance_type->get_type(symbol);
       
   139     if (NULL != res) return res;
       
   140     
       
   141     return NULL;
       
   142   }
   120 
   143 
   121 /***************************************/
   144 /***************************************/
   122 /* B.3 - Language ST (Structured Text) */
   145 /* B.3 - Language ST (Structured Text) */
   123 /***************************************/
   146 /***************************************/
   124 /***********************/
   147 /***********************/