stage4/generate_c/generate_c_st.cc
changeset 861 443e8243f289
parent 855 a3109442e166
child 864 300c27c08753
equal deleted inserted replaced
860:7669a8d43c11 861:443e8243f289
    42 /***********************************************************************/
    42 /***********************************************************************/
    43 /***********************************************************************/
    43 /***********************************************************************/
    44 /***********************************************************************/
    44 /***********************************************************************/
    45 
    45 
    46 
    46 
    47 class generate_c_st_c: public generate_c_typedecl_c {
    47 class generate_c_st_c: public generate_c_base_c {
    48 
    48 
    49   public:
    49   public:
    50     typedef enum {
    50     typedef enum {
    51       expression_vg,
    51       expression_vg,
    52       assignment_vg,
    52       assignment_vg,
    92     variablegeneration_t wanted_variablegeneration;
    92     variablegeneration_t wanted_variablegeneration;
    93     casegeneration_t wanted_casegeneration;
    93     casegeneration_t wanted_casegeneration;
    94 
    94 
    95   public:
    95   public:
    96     generate_c_st_c(stage4out_c *s4o_ptr, symbol_c *name, symbol_c *scope, const char *variable_prefix = NULL)
    96     generate_c_st_c(stage4out_c *s4o_ptr, symbol_c *name, symbol_c *scope, const char *variable_prefix = NULL)
    97     : generate_c_typedecl_c(s4o_ptr) {
    97     : generate_c_base_c(s4o_ptr) {
    98       search_fb_instance_decl    = new search_fb_instance_decl_c   (scope);
    98       search_fb_instance_decl    = new search_fb_instance_decl_c   (scope);
    99       search_varfb_instance_type = new search_varfb_instance_type_c(scope);
    99       search_varfb_instance_type = new search_varfb_instance_type_c(scope);
   100       search_var_instance_decl   = new search_var_instance_decl_c  (scope);
   100       search_var_instance_decl   = new search_var_instance_decl_c  (scope);
   101       
   101       
   102       this->set_variable_prefix(variable_prefix);
   102       this->set_variable_prefix(variable_prefix);