ANTLR Support Libraries 2.7.1+
antlr/NoViableAltException.hpp
Go to the documentation of this file.
00001 #ifndef INC_NoViableAltException_hpp__
00002 #define INC_NoViableAltException_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: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/NoViableAltException.hpp#2 $
00009  */
00010 
00011 #include <antlr/config.hpp>
00012 #include <antlr/RecognitionException.hpp>
00013 #include <antlr/Token.hpp>
00014 #include <antlr/AST.hpp>
00015 
00016 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00017 namespace antlr {
00018 #endif
00019 
00020 class ANTLR_API NoViableAltException : public RecognitionException {
00021 public:
00022    const RefToken token;
00023    const RefAST node; // handles parsing and treeparsing
00024 
00025    NoViableAltException(RefAST t);
00026    NoViableAltException(RefToken t,const ANTLR_USE_NAMESPACE(std)string& fileName_);
00027 
00028    ~NoViableAltException() throw() {}
00029 
00033    ANTLR_USE_NAMESPACE(std)string getMessage() const;
00034 };
00035 
00036 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00037 }
00038 #endif
00039 
00040 #endif //INC_NoViableAltException_hpp__
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines