From: Braden M. <br...@us...> - 2006-11-03 05:38:21
|
Update of /cvsroot/openvrml/openvrml/lib/antlr/src In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2200/src Modified Files: BaseAST.cpp Removed Files: Makefile Log Message: Committed changes from Antlr 2.7.4 to Antlr 2.7.6. --- Makefile DELETED --- Index: BaseAST.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/lib/antlr/src/BaseAST.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BaseAST.cpp 8 Nov 2004 21:14:30 -0000 1.3 --- BaseAST.cpp 3 Nov 2006 05:38:19 -0000 1.4 *************** *** 6,12 **** */ #include <iostream> - #include "antlr/config.hpp" #include "antlr/AST.hpp" #include "antlr/BaseAST.hpp" --- 6,13 ---- */ + #include "antlr/config.hpp" + #include <iostream> #include "antlr/AST.hpp" #include "antlr/BaseAST.hpp" *************** *** 19,66 **** const char* const BaseAST::TYPE_NAME = "BaseAST"; - //bool BaseAST::verboseStringConversion; - //ANTLR_USE_NAMESPACE(std)vector<ANTLR_USE_NAMESPACE(std)string> BaseAST::tokenNames; - - BaseAST::BaseAST() : AST() - { - } - - BaseAST::~BaseAST() - { - } - - BaseAST::BaseAST(const BaseAST& other) - : AST(other) // RK: don't copy links! , down(other.down), right(other.right) - { - } - - const char* BaseAST::typeName( void ) const - { - return BaseAST::TYPE_NAME; - } - - RefAST BaseAST::clone( void ) const - { - ANTLR_USE_NAMESPACE(std)cerr << "BaseAST::clone()" << ANTLR_USE_NAMESPACE(std)endl; - return nullAST; - } - - void BaseAST::addChild( RefAST c ) - { - if( !c ) - return; - - RefBaseAST tmp = down; - - if (tmp) - { - while (tmp->right) - tmp = tmp->right; - tmp->right = c; - } - else - down = c; - } - size_t BaseAST::getNumberOfChildren() const { --- 20,23 ---- *************** *** 234,250 **** } - void BaseAST::setText( const ANTLR_USE_NAMESPACE(std)string& ) - { - } - - void BaseAST::setType( int ) - { - } - - ANTLR_USE_NAMESPACE(std)string BaseAST::toString() const - { - return getText(); - } - ANTLR_USE_NAMESPACE(std)string BaseAST::toStringList() const { --- 191,194 ---- |