]>
git.saurik.com Git - apple/security.git/blob - libsecurity_codesigning/antlr2/src/NoViableAltForCharException.cpp
1 /* ANTLR Translator Generator
2 * Project led by Terence Parr at http://www.jGuru.com
3 * Software rights: http://www.antlr.org/license.html
5 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/src/NoViableAltForCharException.cpp#2 $
8 #include "antlr/NoViableAltForCharException.hpp"
9 #include "antlr/String.hpp"
11 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
15 NoViableAltForCharException::NoViableAltForCharException(int c
, CharScanner
* scanner
)
16 : RecognitionException("NoViableAlt",
17 scanner
->getFilename(),
18 scanner
->getLine(),scanner
->getColumn()),
23 NoViableAltForCharException::NoViableAltForCharException(
25 const ANTLR_USE_NAMESPACE(std
)string
& fileName_
,
26 int line_
, int column_
)
27 : RecognitionException("NoViableAlt",fileName_
,line_
,column_
),
32 ANTLR_USE_NAMESPACE(std
)string
NoViableAltForCharException::getMessage() const
34 return ANTLR_USE_NAMESPACE(std
)string("unexpected char: ")+charName(foundChar
);
37 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE