Static Public Member Functions | List of all members
VhdlParserIF Class Reference

#include <VhdlParserIF.h>

Static Public Member Functions

static void parseVhdlfile (const char *inputBuffer, bool inLine)
 

Detailed Description

Definition at line 6 of file VhdlParserIF.h.

Member Function Documentation

void VhdlParserIF::parseVhdlfile ( const char *  inputBuffer,
bool  inLine 
)
static

Definition at line 12 of file VhdlParserIF.cpp.

13 {
14  JAVACC_STRING_TYPE s =inputBuffer;
15  CharStream *stream = new CharStream(s.c_str(), (int)s.size(), 1, 1);
16  VhdlParserTokenManager *tokenManager = new VhdlParserTokenManager(stream);
17  myParser=new VhdlParser(tokenManager);
19  myParser->setErrorHandler(myErr);
20  try
21  {
22  if(inLine)
23  {
25  }
26  else
27  {
29  }
30  }
31  catch( std::exception &){ /* fprintf(stderr,"\n[%s]",e.what()); */ }
32  // fprintf(stderr,"\n\nparsed lines: %d\n",yyLineNr);
33  // fprintf(stderr,"\n\nerrors : %d\n\n",myErr->getErrorCount());
34  delete myParser;
35  delete myErr;
36 
37 }
static VhdlParser * myParser
void setErrorHandler(ErrorHandler *eh)
Definition: VhdlParser.h:8895
#define JAVACC_STRING_TYPE
Definition: JavaCC.h:16
static QCString * s
Definition: config.cpp:1042
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

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