108 symbol_c *get_basetype_decl(symbol_c *variable_name); |
108 symbol_c *get_basetype_decl(symbol_c *variable_name); |
109 symbol_c *get_basetype_id (symbol_c *variable_name); |
109 symbol_c *get_basetype_id (symbol_c *variable_name); |
110 // symbol_c *get_type_decl(symbol_c *variable_name); |
110 // symbol_c *get_type_decl(symbol_c *variable_name); |
111 symbol_c *get_type_id(symbol_c *variable_name); |
111 symbol_c *get_type_id(symbol_c *variable_name); |
112 |
112 |
113 /* NOTE: this function should be remvoed/deleted. |
113 /* NOTE: I have a feeling that this function should be remvoed/deleted. |
114 * However, it is currently used in stage 4, and before deleting it |
114 * However, it is currently used in stage 4, and before deleting it |
115 * requires that the stage4 code be analysed and fixed (i.e. replace by |
115 * requires that the stage4 code be analysed and fixed (i.e. replace by |
116 * a call to one of the above functions get_basetype_decl(), |
116 * a call to one of the above functions get_basetype_decl(), |
117 * get_type_decl(), get_type_id(). |
117 * get_type_decl(), get_type_id(). |
118 * |
|
119 * At the moment, I have a feeling that this whole class search_varfb_instance_type_c |
|
120 * will not be needed in the future (i.e. when we finish implementing type checking |
|
121 * in stage 3 correctly, where we store on each symbol in the abstract syntax |
|
122 * tree it's data type, so stage4 implementations will not need to deduce the data |
|
123 * types again), so it does not make much sense to spend more time on it. |
|
124 */ |
118 */ |
125 unsigned int get_vartype(symbol_c *variable_name); |
119 unsigned int get_vartype(symbol_c *variable_name); |
126 bool type_is_complex(void); |
120 bool type_is_complex(void); |
127 |
121 |
128 private: |
122 private: |