Update of /cvsroot/openvrml/openvrml/lib/antlr/antlr
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13096/lib/antlr/antlr
Modified Files:
BaseAST.hpp CharScanner.hpp Parser.hpp config.hpp
Log Message:
Upgrade to/require ANTLR 2.7.7.
Index: config.hpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/lib/antlr/antlr/config.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** config.hpp 3 Nov 2006 05:38:18 -0000 1.6
--- config.hpp 1 Jun 2007 20:04:37 -0000 1.7
***************
*** 102,106 ****
# define NO_STRCASECMP
# undef ANTLR_CCTYPE_NEEDS_STD
!
#endif // End of Microsoft Visual C++
--- 102,106 ----
# define NO_STRCASECMP
# undef ANTLR_CCTYPE_NEEDS_STD
! # define NO_STATIC_CONSTS
#endif // End of Microsoft Visual C++
Index: BaseAST.hpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/lib/antlr/antlr/BaseAST.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BaseAST.hpp 3 Nov 2006 09:31:14 -0000 1.2
--- BaseAST.hpp 1 Jun 2007 20:04:37 -0000 1.3
***************
*** 35,49 ****
/// Return the class name
! const char* typeName( void ) const
! {
! return BaseAST::TYPE_NAME;
! }
/// Clone this AST node.
! RefAST clone( void ) const
! {
! ANTLR_USE_NAMESPACE(std)cerr << "BaseAST::clone()" << ANTLR_USE_NAMESPACE(std)endl;
! return nullAST;
! }
/// Is node t equal to this in terms of token type and text?
--- 35,42 ----
/// Return the class name
! virtual const char* typeName( void ) const = 0;
/// Clone this AST node.
! virtual RefAST clone( void ) const = 0;
/// Is node t equal to this in terms of token type and text?
***************
*** 139,143 ****
/// Set the next sibling after this one.
! void setNextSibling(RefAST n)
{
right = static_cast<BaseAST*>(static_cast<AST*>(n));
--- 132,136 ----
/// Set the next sibling after this one.
! virtual void setNextSibling(RefAST n)
{
right = static_cast<BaseAST*>(static_cast<AST*>(n));
***************
*** 176,181 ****
virtual ANTLR_USE_NAMESPACE(std)string toStringList() const;
virtual ANTLR_USE_NAMESPACE(std)string toStringTree() const;
-
- static const char* const TYPE_NAME;
protected:
RefBaseAST down;
--- 169,172 ----
|