Public Member Functions | Protected Attributes | Friends | List of all members
vhdl::parser::TokenManagerErrorHandler Class Reference

#include <ErrorHandler.h>

Public Member Functions

virtual void lexicalError (bool EOFSeen, int lexState, int errorLine, int errorColumn, JAVACC_STRING_TYPE errorAfter, JAVACC_CHAR_TYPE curChar, VhdlParserTokenManager *token_manager)
 
virtual void lexicalError (JAVACC_STRING_TYPE errorMessage, VhdlParserTokenManager *token_manager)
 
virtual ~TokenManagerErrorHandler ()
 

Protected Attributes

int error_count
 

Friends

class VhdlParserTokenManager
 

Detailed Description

Definition at line 50 of file ErrorHandler.h.

Constructor & Destructor Documentation

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

Definition at line 72 of file ErrorHandler.h.

72 {}

Member Function Documentation

virtual void vhdl::parser::TokenManagerErrorHandler::lexicalError ( bool  EOFSeen,
int  lexState,
int  errorLine,
int  errorColumn,
JAVACC_STRING_TYPE  errorAfter,
JAVACC_CHAR_TYPE  curChar,
VhdlParserTokenManager token_manager 
)
inlinevirtual

Definition at line 65 of file ErrorHandler.h.

65  {
66  // by default, we just print an error message and return.
67  fprintf(stderr, "Lexical error at: %d:%d. Encountered: %c after: %s.\n", errorLine, errorColumn, curChar, (EOFSeen? "EOF" : (const char*)errorAfter.c_str()));
68  }
virtual void vhdl::parser::TokenManagerErrorHandler::lexicalError ( JAVACC_STRING_TYPE  errorMessage,
VhdlParserTokenManager token_manager 
)
inlinevirtual

Definition at line 69 of file ErrorHandler.h.

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

Friends And Related Function Documentation

friend class VhdlParserTokenManager
friend

Definition at line 51 of file ErrorHandler.h.

Member Data Documentation

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

Definition at line 53 of file ErrorHandler.h.


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