stage1_2/create_enumtype_conversion_functions.cc
changeset 958 7474d2cd1d6e
parent 765 d15f13bff9c6
child 1041 56ebe2a31b5b
equal deleted inserted replaced
957:4489afa5b1c5 958:7474d2cd1d6e
    74       symbol->accept(*singleton);
    74       symbol->accept(*singleton);
    75 
    75 
    76     return singleton->text;
    76     return singleton->text;
    77 }
    77 }
    78 
    78 
    79 
    79 /* As the name of derived datatypes and POUs are still stored as identifiers in the respective datatype and POU declaration,  */
    80 void *create_enumtype_conversion_functions_c::visit(identifier_c *symbol) {
    80 /* only the indintifier_c visitor should be necessary!                                                                        */
    81     currentToken = symbol->value;
    81 void *create_enumtype_conversion_functions_c::visit(                 identifier_c *symbol) {currentToken = symbol->value; return NULL;}
    82     return NULL;
    82 void *create_enumtype_conversion_functions_c::visit(         poutype_identifier_c *symbol) {ERROR; return NULL;}
    83 }
    83 void *create_enumtype_conversion_functions_c::visit(derived_datatype_identifier_c *symbol) {ERROR; return NULL;}
       
    84 
    84 
    85 
    85 /**********************/
    86 /**********************/
    86 /* B 1.3 - Data types */
    87 /* B 1.3 - Data types */
    87 /**********************/
    88 /**********************/
    88 /********************************/
    89 /********************************/