00001 #ifndef INC_NoViableAltForCharException_hpp__ 00002 # define INC_NoViableAltForCharException_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/license.html 00007 * 00008 * $Id: NoViableAltForCharException.hpp,v 1.1 2004/10/08 16:27:34 dfisher Exp $ 00009 */ 00010 00011 # include <antlr/config.hpp> 00012 # include <antlr/RecognitionException.hpp> 00013 # include <antlr/CharScanner.hpp> 00014 00015 # ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00016 namespace antlr 00017 { 00018 # endif 00019 00020 class ANTLR_API NoViableAltForCharException : public RecognitionException 00021 { 00022 public: 00023 NoViableAltForCharException(int c, CharScanner* scanner); 00024 NoViableAltForCharException(int c, const ANTLR_USE_NAMESPACE(std)string& fileName_, 00025 int line_, int column_); 00026 00027 virtual ~NoViableAltForCharException() throw() 00028 { 00029 } 00030 00032 ANTLR_USE_NAMESPACE(std)string getMessage() const; 00033 protected: 00034 int foundChar; 00035 }; 00036 00037 # ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00038 } 00039 # endif 00040 00041 #endif //INC_NoViableAltForCharException_hpp__