stage3/visit_expression_type.hh
changeset 399 55b074ea7255
parent 390 9cf96d45853d
equal deleted inserted replaced
398:f1f3facc59e7 399:55b074ea7255
   154     /* Determine the common data type between two data types.
   154     /* Determine the common data type between two data types.
   155      * Unlike the common_type__() function, we stop the compiler with an ERROR
   155      * Unlike the common_type__() function, we stop the compiler with an ERROR
   156      *  if no common data type is found.
   156      *  if no common data type is found.
   157      */
   157      */
   158     symbol_c *common_type(symbol_c *first_type, symbol_c *second_type);
   158     symbol_c *common_type(symbol_c *first_type, symbol_c *second_type);
       
   159 
       
   160     symbol_c *common_literal(symbol_c *first_type, symbol_c *second_type);
       
   161     symbol_c *overloaded_return_type(symbol_c *type);
       
   162 
   159 /* Return TRUE if the second (value) data type may be assigned to a variable of the first (variable) data type
   163 /* Return TRUE if the second (value) data type may be assigned to a variable of the first (variable) data type
   160  * such as: 
   164  * such as: 
   161  *     var_type     value_type
   165  *     var_type     value_type
   162  *    BOOL           BYTE#7     -> returns false
   166  *    BOOL           BYTE#7     -> returns false
   163  *    INT            INT#7      -> returns true
   167  *    INT            INT#7      -> returns true