The VhdlTokenManagerErrorHandler
Class Reference
Declaration
class vhdl::parser::VhdlTokenManagerErrorHandler { ... }
Included Headers
#include <vhdlparser/VhdlParserErrorHandler.hpp>
Base class
class | TokenManagerErrorHandler |
Public Constructors Index
VhdlTokenManagerErrorHandler (const char *fileName) | |
Public Member Functions Index
void | lexicalError (bool EOFSeen, int, int errorLine, int, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *) |
void | lexicalError (const JJString &errorMessage, VhdlParserTokenManager *) |
Private Member Attributes Index
QCString | m_fileName |
Definition at line 46 of file VhdlParserErrorHandler.hpp.
Public Constructors
VhdlTokenManagerErrorHandler()
| inline |
Definition at line 49 of file VhdlParserErrorHandler.hpp.
49 VhdlTokenManagerErrorHandler(const char *fileName) : m_fileName(fileName) {}
Reference m_fileName.
Public Member Functions
lexicalError()
| inline virtual |
Definition at line 51 of file VhdlParserErrorHandler.hpp.
51 virtual void lexicalError(bool EOFSeen, int /* lexState */, int errorLine, int /* errorColumn */, const JJString& errorAfter, JJChar curChar, VhdlParserTokenManager* /* token_manager */)
52 {
53 warn(m_fileName,errorLine,"Lexical error, Encountered: '{:c}' after: '{}'",(char)curChar, (EOFSeen? "EOF" : (const char*)errorAfter.c_str()));
54 }
References m_fileName, vhdl::parser::TokenManagerErrorHandler::VhdlParserTokenManager and warn.
lexicalError()
| inline virtual |
Definition at line 56 of file VhdlParserErrorHandler.hpp.
56 virtual void lexicalError(const JJString& errorMessage, VhdlParserTokenManager* /* token_manager */)
57 {
58 warn(m_fileName,-1,"Unknown error: '{}'", (const char*)errorMessage.c_str());
59 }
References m_fileName, vhdl::parser::TokenManagerErrorHandler::VhdlParserTokenManager and warn.
Private Member Attributes
m_fileName
|
Definition at line 62 of file VhdlParserErrorHandler.hpp.
Referenced by lexicalError, lexicalError and VhdlTokenManagerErrorHandler.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.