stage3/constant_folding.hh
changeset 981 aad6aa35ce60
parent 973 f86d5d6bb04e
child 982 760b26477193
equal deleted inserted replaced
980:9ed5aff159db 981:aad6aa35ce60
   119     void *visit(fixed_point_c *symbol);
   119     void *visit(fixed_point_c *symbol);
   120 
   120 
   121     /*********************/
   121     /*********************/
   122     /* B 1.4 - Variables */
   122     /* B 1.4 - Variables */
   123     /*********************/
   123     /*********************/
   124 //     #if DO_CONSTANT_PROPAGATION__
   124     #if DO_CONSTANT_PROPAGATION__
   125     void *visit(symbolic_variable_c *symbol);
   125     void *visit(symbolic_variable_c *symbol);
   126 //     #endif // DO_CONSTANT_PROPAGATION__
   126     #endif // DO_CONSTANT_PROPAGATION__
   127     void *visit(symbolic_constant_c *symbol);
   127     void *visit(symbolic_constant_c *symbol);
   128                              
   128                              
   129     /******************************************/
   129     /******************************************/
   130     /* B 1.4.3 - Declaration & Initialisation */
   130     /* B 1.4.3 - Declaration & Initialisation */
   131     /******************************************/
   131     /******************************************/
   259     void *visit( power_expression_c *symbol);
   259     void *visit( power_expression_c *symbol);
   260     void *visit(   neg_expression_c *symbol);
   260     void *visit(   neg_expression_c *symbol);
   261     void *visit(   not_expression_c *symbol);
   261     void *visit(   not_expression_c *symbol);
   262     //void *visit(function_invocation_c *symbol); /* TODO */
   262     //void *visit(function_invocation_c *symbol); /* TODO */
   263 
   263 
   264     
   264     #if DO_CONSTANT_PROPAGATION__
   265     /*********************************/
   265     /*********************************/
   266     /* B 3.2.1 Assignment Statements */
   266     /* B 3.2.1 Assignment Statements */
   267     /*********************************/
   267     /*********************************/
   268     void *visit(assignment_statement_c *symbol);
   268     void *visit(assignment_statement_c *symbol);
   269 
   269 
   270     #if DO_CONSTANT_PROPAGATION__
       
   271     /********************************/
   270     /********************************/
   272     /* B 3.2.3 Selection Statements */
   271     /* B 3.2.3 Selection Statements */
   273     /********************************/
   272     /********************************/
   274     void *visit(if_statement_c *symbol);
   273     void *visit(if_statement_c *symbol);
   275 
   274