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

#include <vhdlparser/ErrorHandler.h>

+ Inheritance diagram for vhdl::parser::TokenManagerErrorHandler:

Public Member Functions

virtual void lexicalError (bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *token_manager)
 
virtual void lexicalError (const JJString &errorMessage, VhdlParserTokenManager *token_manager)
 
virtual ~TokenManagerErrorHandler ()
 

Protected Attributes

int error_count
 

Friends

class VhdlParserTokenManager
 

Detailed Description

Definition at line 51 of file ErrorHandler.h.

Constructor & Destructor Documentation

◆ ~TokenManagerErrorHandler()

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

Definition at line 73 of file ErrorHandler.h.

73{}

Member Function Documentation

◆ lexicalError() [1/2]

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

Reimplemented in vhdl::parser::VhdlTokenManagerErrorHandler.

Definition at line 66 of file ErrorHandler.h.

66 {
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 }

References VhdlParserTokenManager.

◆ lexicalError() [2/2]

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

Reimplemented in vhdl::parser::VhdlTokenManagerErrorHandler.

Definition at line 70 of file ErrorHandler.h.

70 {
71 fprintf(stderr, "%s\n", (char*)errorMessage.c_str());
72 }

References VhdlParserTokenManager.

Friends And Related Symbol Documentation

◆ VhdlParserTokenManager

Member Data Documentation

◆ 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: