KDevelop API Documentation

lib/antlr/src/CommonASTWithHiddenTokens.cpp

Go to the documentation of this file.
00001 /* ANTLR Translator Generator 00002 * Project led by Terence Parr at http://www.jGuru.com 00003 * Software rights: http://www.antlr.org/RIGHTS.html 00004 * 00005 * $Id: CommonASTWithHiddenTokens.cpp,v 1.2 2003/05/02 00:36:20 okellogg Exp $ 00006 */ 00007 #include "antlr/config.hpp" 00008 #include "antlr/AST.hpp" 00009 #include "antlr/BaseAST.hpp" 00010 #include "antlr/CommonAST.hpp" 00011 #include "antlr/CommonASTWithHiddenTokens.hpp" 00012 #include "antlr/CommonHiddenStreamToken.hpp" 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00018 // RK: Do not put constructor and destructor into the header file here.. 00019 // this triggers something very obscure in gcc 2.95.3 (and 3.0) 00020 // missing vtables and stuff. 00021 // Although this may be a problem with with binutils. 00022 CommonASTWithHiddenTokens::CommonASTWithHiddenTokens() 00023 : CommonAST() 00024 { 00025 } 00026 00027 CommonASTWithHiddenTokens::~CommonASTWithHiddenTokens() 00028 { 00029 } 00030 00031 void CommonASTWithHiddenTokens::initialize(int t,const ANTLR_USE_NAMESPACE(std)string& txt) 00032 { 00033 CommonAST::initialize(t,txt); 00034 } 00035 00036 void CommonASTWithHiddenTokens::initialize(RefAST t) 00037 { 00038 CommonAST::initialize(t); 00039 } 00040 00041 void CommonASTWithHiddenTokens::initialize(RefToken t) 00042 { 00043 CommonAST::initialize(t); 00044 hiddenBefore = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenBefore(); 00045 hiddenAfter = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenAfter(); 00046 } 00047 00048 RefAST CommonASTWithHiddenTokens::factory() 00049 { 00050 return RefAST(new CommonASTWithHiddenTokens); 00051 } 00052 00053 RefAST CommonASTWithHiddenTokens::clone( void ) const 00054 { 00055 CommonASTWithHiddenTokens *ast = new CommonASTWithHiddenTokens( *this ); 00056 return RefAST(ast); 00057 } 00058 00059 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00060 } 00061 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003