Skip to main content

The TokenManagerErrorHandler Class Reference

Declaration

class vhdl::parser::TokenManagerErrorHandler { ... }

Included Headers

Derived Classes

classVhdlTokenManagerErrorHandler

Friends Index

classVhdlParserTokenManager

Public Destructor Index

~TokenManagerErrorHandler ()

Public Member Functions Index

voidlexicalError (bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *token_manager)
voidlexicalError (const JJString &errorMessage, VhdlParserTokenManager *token_manager)

Protected Member Attributes Index

interror_count

Definition at line 51 of file ErrorHandler.h.

Public Destructor

~TokenManagerErrorHandler()

virtual vhdl::parser::TokenManagerErrorHandler::~TokenManagerErrorHandler ()
inline virtual

Definition at line 73 of file ErrorHandler.h.

Public Member Functions

lexicalError()

virtual void vhdl::parser::TokenManagerErrorHandler::lexicalError (bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString & errorAfter, JJChar curChar, VhdlParserTokenManager * token_manager)
inline virtual

Definition at line 66 of file ErrorHandler.h.

66 virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString& errorAfter, JJChar curChar, VhdlParserTokenManager* token_manager) {
67 // by default, we just print an error message and return.
68 fprintf(stderr, "Lexical error at: %d:%d. Encountered: %c after: %s.\n", errorLine, errorColumn, curChar, (EOFSeen? "EOF" : (const char*)errorAfter.c_str()));
69 }

Reference VhdlParserTokenManager.

lexicalError()

virtual void vhdl::parser::TokenManagerErrorHandler::lexicalError (const JJString & errorMessage, VhdlParserTokenManager * token_manager)
inline virtual

Definition at line 70 of file ErrorHandler.h.

70 virtual void lexicalError(const JJString& errorMessage, VhdlParserTokenManager* token_manager) {
71 fprintf(stderr, "%s\n", (char*)errorMessage.c_str());
72 }

Reference VhdlParserTokenManager.

Protected Member Attributes

error_count

int vhdl::parser::TokenManagerErrorHandler::error_count
protected

Definition at line 54 of file ErrorHandler.h.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.