lib/antlr/src/NoViableAltForCharException.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
#include "antlr/NoViableAltForCharException.hpp"
00009
#include "antlr/String.hpp"
00010
00011
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00012
namespace antlr {
00013
#endif
00014
00015 NoViableAltForCharException::NoViableAltForCharException(
int c,
CharScanner* scanner)
00016 :
RecognitionException("NoViableAlt",
00017 scanner->getFilename(),
00018 scanner->getLine(),scanner->getColumn()),
00019 foundChar(c)
00020 {
00021 }
00022
00023 NoViableAltForCharException::NoViableAltForCharException(
00024
int c,
00025
const ANTLR_USE_NAMESPACE(std)string& fileName_,
00026
int line_,
int column_)
00027 :
RecognitionException("NoViableAlt",fileName_,line_,column_),
00028 foundChar(c)
00029 {
00030 }
00031
00032 ANTLR_USE_NAMESPACE(std)string
NoViableAltForCharException::getMessage()
const
00033
{
00034
return ANTLR_USE_NAMESPACE(std)string(
"unexpected char: ")+
charName(foundChar);
00035 }
00036
00037
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00038
}
00039
#endif
This file is part of the documentation for KDevelop Version 3.0.4.