00001 /* 00002 The lestes compiler suite 00003 Copyright (C) 2002, 2003, 2004, 2005 Miroslav Tichy 00004 Copyright (C) 2002, 2003, 2004, 2005 Petr Zika 00005 Copyright (C) 2002, 2003, 2004, 2005 Vojtech Hala 00006 Copyright (C) 2002, 2003, 2004, 2005 Jiri Kosina 00007 Copyright (C) 2002, 2003, 2004, 2005 Pavel Sanda 00008 Copyright (C) 2002, 2003, 2004, 2005 Jan Zouhar 00009 Copyright (C) 2002, 2003, 2004, 2005 Rudolf Thomas 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; version 2 of the License. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 See the full text of the GNU General Public License version 2, and 00021 the limitations in the file doc/LICENSE. 00022 00023 By accepting the license the licensee waives any and all claims 00024 against the copyright holder(s) related in whole or in part to the 00025 work, its use, and/or the inability to use it. 00026 00027 */ 00028 #include <lestes/msg/as_id_to_lstring.g.hh> 00029 #include <lestes/lang/cplus/sem/as_decl.g.hh> 00030 #include <lestes/lang/cplus/syn/token.hh> 00031 00032 package(lestes); 00033 package(msg); 00034 00035 void as_id_to_lstring::visit_as_template_id( ptr< ::lestes::lang::cplus::sem::as_template_id > ) 00036 { 00037 result_set( "<template_id>" ); 00038 } 00039 00040 void as_id_to_lstring::visit_as_identifier( ptr< ::lestes::lang::cplus::sem::as_identifier > identifier ) 00041 { 00042 result_set( identifier->token_get()->value_get().to_host_string() ); 00043 } 00044 00045 void as_id_to_lstring::visit_as_destructor_id_token( ptr< ::lestes::lang::cplus::sem::as_destructor_id_token > ) 00046 { 00047 result_set( "<destructor_id>" ); 00048 } 00049 00050 void as_id_to_lstring::visit_as_destructor_id_template( ptr< ::lestes::lang::cplus::sem::as_destructor_id_template > ) 00051 { 00052 result_set( "<destructor_id_template>" ); 00053 } 00054 00055 void as_id_to_lstring::visit_as_constructor_id( ptr< ::lestes::lang::cplus::sem::as_constructor_id > ) 00056 { 00057 result_set( "<constructor_id>" ); 00058 } 00059 00060 void as_id_to_lstring::visit_as_op_function_id( ptr< ::lestes::lang::cplus::sem::as_op_function_id > ) 00061 { 00062 result_set( "<operator_function_id>" ); 00063 } 00064 00065 void as_id_to_lstring::visit_as_conv_function_id( ptr< ::lestes::lang::cplus::sem::as_conv_function_id > ) 00066 { 00067 result_set( "<conversion_function_id>" ); 00068 } 00069 00070 void as_id_to_lstring::visit_as_empty_id( ptr< ::lestes::lang::cplus::sem::as_empty_id > ) 00071 { 00072 result_set( "<empty>" ); 00073 } 00074 00075 void as_id_to_lstring::visit_as_global_namespace_fake_id( ptr< ::lestes::lang::cplus::sem::as_global_namespace_fake_id > ) 00076 { 00077 result_set( "::" ); 00078 } 00079 00080 end_package(msg); 00081 end_package(lestes);
1.5.1-20070107