Private Member Functions | List of all members
vhdl::parser::VhdlErrorHandler Class Reference

#include <VhdlParserErrorHandler.hpp>

Inheritance diagram for vhdl::parser::VhdlErrorHandler:
vhdl::parser::ErrorHandler

Private Member Functions

virtual void handleUnexpectedToken (int expectedKind, JAVACC_STRING_TYPE expectedToken, Token *actual, VhdlParser *parser)
 
virtual void handleParseError (Token *last, Token *unexpected, JAVACC_SIMPLE_STRING production, VhdlParser *parser)
 
virtual void handleOtherError (JAVACC_STRING_TYPE message, VhdlParser *parser)
 

Additional Inherited Members

- Public Member Functions inherited from vhdl::parser::ErrorHandler
virtual int getErrorCount ()
 
virtual ~ErrorHandler ()
 
 ErrorHandler ()
 
- Protected Attributes inherited from vhdl::parser::ErrorHandler
int error_count
 

Detailed Description

Definition at line 13 of file VhdlParserErrorHandler.hpp.

Member Function Documentation

virtual void vhdl::parser::VhdlErrorHandler::handleOtherError ( JAVACC_STRING_TYPE  message,
VhdlParser parser 
)
inlineprivatevirtual

Reimplemented from vhdl::parser::ErrorHandler.

Definition at line 29 of file VhdlParserErrorHandler.hpp.

30  {
31  fprintf(stderr, "\n\n unexpected error: %s\n", (char*)message.c_str());
32  error_count++;
33  throw std::exception();
34  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
virtual void vhdl::parser::VhdlErrorHandler::handleParseError ( Token last,
Token unexpected,
JAVACC_SIMPLE_STRING  production,
VhdlParser parser 
)
inlineprivatevirtual

Reimplemented from vhdl::parser::ErrorHandler.

Definition at line 22 of file VhdlParserErrorHandler.hpp.

23  {
24  fprintf(stderr,"\n\n unexpected token at line: %d %s\n", last->beginLine,unexpected->image.data());
25  error_count++;
26  throw std::exception();
27  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
virtual void vhdl::parser::VhdlErrorHandler::handleUnexpectedToken ( int  expectedKind,
JAVACC_STRING_TYPE  expectedToken,
Token actual,
VhdlParser parser 
)
inlineprivatevirtual

Reimplemented from vhdl::parser::ErrorHandler.

Definition at line 15 of file VhdlParserErrorHandler.hpp.

16  {
17  fprintf(stderr,"\n\n syntax error at line: %d : %s\n", actual->beginLine,actual->image.data());
18  error_count++;
19  throw std::exception();
20  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

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