Doxygen
Loading...
Searching...
No Matches
vhdl::parser::VhdlTokenManagerErrorHandler Class Reference

#include <vhdlparser/VhdlParserErrorHandler.hpp>

+ Inheritance diagram for vhdl::parser::VhdlTokenManagerErrorHandler:
+ Collaboration diagram for vhdl::parser::VhdlTokenManagerErrorHandler:

Public Member Functions

 VhdlTokenManagerErrorHandler (const char *fileName)
 
virtual void lexicalError (bool EOFSeen, int, int errorLine, int, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *)
 
virtual void lexicalError (const JJString &errorMessage, VhdlParserTokenManager *)
 
- Public Member Functions inherited from vhdl::parser::TokenManagerErrorHandler
virtual ~TokenManagerErrorHandler ()
 

Private Attributes

QCString m_fileName
 

Additional Inherited Members

- Protected Attributes inherited from vhdl::parser::TokenManagerErrorHandler
int error_count
 

Detailed Description

Definition at line 46 of file VhdlParserErrorHandler.hpp.

Constructor & Destructor Documentation

◆ VhdlTokenManagerErrorHandler()

vhdl::parser::VhdlTokenManagerErrorHandler::VhdlTokenManagerErrorHandler ( const char * fileName)
inline

Definition at line 49 of file VhdlParserErrorHandler.hpp.

References m_fileName.

Member Function Documentation

◆ lexicalError() [1/2]

virtual void vhdl::parser::VhdlTokenManagerErrorHandler::lexicalError ( bool EOFSeen,
int ,
int errorLine,
int ,
const JJString & errorAfter,
JJChar curChar,
VhdlParserTokenManager *  )
inlinevirtual

Reimplemented from vhdl::parser::TokenManagerErrorHandler.

Definition at line 51 of file VhdlParserErrorHandler.hpp.

52 {
53 warn(m_fileName,errorLine,"Lexical error, Encountered: '%c' after: '%s'",curChar, (EOFSeen? "EOF" : (const char*)errorAfter.c_str()));
54 }
#define warn(file, line, fmt,...)
Definition message.h:59

References m_fileName, vhdl::parser::TokenManagerErrorHandler::VhdlParserTokenManager, and warn.

◆ lexicalError() [2/2]

virtual void vhdl::parser::VhdlTokenManagerErrorHandler::lexicalError ( const JJString & errorMessage,
VhdlParserTokenManager *  )
inlinevirtual

Reimplemented from vhdl::parser::TokenManagerErrorHandler.

Definition at line 56 of file VhdlParserErrorHandler.hpp.

57 {
58 warn(m_fileName,-1,"Unknown error: '%s'", (char*)errorMessage.c_str());
59 }

References m_fileName, vhdl::parser::TokenManagerErrorHandler::VhdlParserTokenManager, and warn.

Member Data Documentation

◆ m_fileName

QCString vhdl::parser::VhdlTokenManagerErrorHandler::m_fileName
private

The documentation for this class was generated from the following file: