KDevelop API Documentation

NoViableAltForCharException.cpp

Go to the documentation of this file.
00001 /* ANTLR Translator Generator
00002  * Project led by Terence Parr at http://www.jGuru.com
00003  * Software rights: http://www.antlr.org/RIGHTS.html
00004  *
00005  * $Id: NoViableAltForCharException.cpp,v 1.2 2003/05/02 00:36:20 okellogg Exp $
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
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:34 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003