KDevelop API Documentation

lib/antlr/antlr/TokenStreamRecognitionException.hpp

Go to the documentation of this file.
00001 #ifndef INC_TokenStreamRecognitionException_hpp__ 00002 #define INC_TokenStreamRecognitionException_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/RIGHTS.html 00007 * 00008 * $Id: TokenStreamRecognitionException.hpp,v 1.2 2003/05/02 00:36:19 okellogg Exp $ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <antlr/TokenStreamException.hpp> 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00018 class TokenStreamRecognitionException : public TokenStreamException { 00019 public: 00020 TokenStreamRecognitionException(RecognitionException& re) 00021 : TokenStreamException(re.getMessage()) 00022 , recog(re) 00023 { 00024 } 00025 ~TokenStreamRecognitionException() throw() 00026 { 00027 } 00028 ANTLR_USE_NAMESPACE(std)string toString() const 00029 { 00030 return recog.getFileLineColumnString()+getMessage(); 00031 } 00032 private: 00033 RecognitionException recog; 00034 }; 00035 00036 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00037 } 00038 #endif 00039 00040 #endif //INC_TokenStreamRecognitionException_hpp__
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