stage4/generate_cc/generate_cc_base.cc
changeset 55 8b7a21820737
parent 41 8998c8b24b60
equal deleted inserted replaced
54:66925599259a 55:8b7a21820737
    86     void *print_token(token_c *token, int offset = 0) {
    86     void *print_token(token_c *token, int offset = 0) {
    87       return s4o.printupper((token->value)+offset);
    87       return s4o.printupper((token->value)+offset);
    88     }
    88     }
    89 
    89 
    90     void *print_literal(symbol_c *type, symbol_c *value) {
    90     void *print_literal(symbol_c *type, symbol_c *value) {
    91       s4o.print("(");
    91       s4o.print("__");
    92       type->accept(*this);
    92       type->accept(*this);
       
    93       s4o.print("_LITERAL(");
       
    94       value->accept(*this);
    93       s4o.print(")");
    95       s4o.print(")");
    94       value->accept(*this);
       
    95       return NULL;
    96       return NULL;
    96     }
    97     }
    97 
    98 
    98     void *print_striped_token(token_c *token, int offset = 0) {
    99     void *print_striped_token(token_c *token, int offset = 0) {
    99       std::string str = "";
   100       std::string str = "";