stage3/fill_candidate_datatypes.hh
changeset 472 d26759a2274a
parent 465 b52ec62773db
child 476 38d85e9a0507
equal deleted inserted replaced
471:da650a87662d 472:d26759a2274a
    91     /* a helper function... */
    91     /* a helper function... */
    92     symbol_c *base_type(symbol_c *symbol);    
    92     symbol_c *base_type(symbol_c *symbol);    
    93     
    93     
    94     /* add a data type to a candidate data type list, while guaranteeing no duplicate entries! */
    94     /* add a data type to a candidate data type list, while guaranteeing no duplicate entries! */
    95     /* Returns true if it really did add the datatype to the list, or false if it was already present in the list! */
    95     /* Returns true if it really did add the datatype to the list, or false if it was already present in the list! */
    96     bool add_datatype_to_candidate_list(symbol_c *symbol, symbol_c *datatype);
    96     bool add_datatype_to_candidate_list  (symbol_c *symbol, symbol_c *datatype);
       
    97     bool add_2datatypes_to_candidate_list(symbol_c *symbol, symbol_c *datatype1, symbol_c *datatype2);
    97     
    98     
    98     
    99     
    99   public:
   100   public:
   100     fill_candidate_datatypes_c(symbol_c *ignore);
   101     fill_candidate_datatypes_c(symbol_c *ignore);
   101     virtual ~fill_candidate_datatypes_c(void);
   102     virtual ~fill_candidate_datatypes_c(void);
   105     /* B 1.2 - Constants */
   106     /* B 1.2 - Constants */
   106     /*********************/
   107     /*********************/
   107     /******************************/
   108     /******************************/
   108     /* B 1.2.1 - Numeric Literals */
   109     /* B 1.2.1 - Numeric Literals */
   109     /******************************/
   110     /******************************/
       
   111     void *handle_any_integer(symbol_c *symbol);
       
   112     
   110     void *visit(real_c *symbol);
   113     void *visit(real_c *symbol);
   111     void *visit(integer_c *symbol);
   114     void *visit(integer_c *symbol);
   112     void *visit(neg_real_c *symbol);
   115     void *visit(neg_real_c *symbol);
   113     void *visit(neg_integer_c *symbol);
   116     void *visit(neg_integer_c *symbol);
   114     void *visit(binary_integer_c *symbol);
   117     void *visit(binary_integer_c *symbol);