Doxygen
Loading...
Searching...
No Matches
VHDLOutlineParser::Private Struct Reference
+ Collaboration diagram for VHDLOutlineParser::Private:

Public Member Functions

void parseVhdlfile (const QCString &fileName, const QCString &inputBuffer, bool inLine)
 

Public Attributes

VHDLOutlineParserthisParser = nullptr
 
VhdlParservhdlParser = nullptr
 
CommentScanner commentScanner
 
QCString yyFileName
 
int yyLineNr = 1
 
IntVector lineParse
 
int iDocLine = -1
 
QCString inputString
 
EntrygBlock = nullptr
 
Entryprevious = nullptr
 
EntryoldEntry = nullptr
 
bool varr = FALSE
 
QCString varName
 
EntryList libUse
 
EntryList lineEntry
 
QCString strComment
 
int iCodeLen
 
VHDLDocInfo str_doc
 
VhdlParser::SharedState shared
 
QCString forL
 
int code = 0
 

Detailed Description

Definition at line 57 of file vhdljjparser.cpp.

Member Function Documentation

◆ parseVhdlfile()

void VHDLOutlineParser::Private::parseVhdlfile ( const QCString & fileName,
const QCString & inputBuffer,
bool inLine )

Definition at line 88 of file vhdljjparser.cpp.

90{
91 QCString s =inputBuffer;
92 CharStream *stream = new CharStream(reinterpret_cast<const JJChar*>(s.data()), (int)s.size(), 1, 1);
93 VhdlParserTokenManager *tokenManager = new VhdlParserTokenManager(stream);
94 VhdlTokenManagerErrorHandler *tokErrHandler=new VhdlTokenManagerErrorHandler(fileName.data());
95 vhdlParser=new VhdlParser(tokenManager);
96 vhdlParser->setOutlineParser(thisParser);
97 vhdlParser->setSharedState(&shared);
98 tokenManager->setLexParser(vhdlParser);
99 tokenManager->ReInit(stream,0);
100 tokenManager->setErrorHandler(tokErrHandler);
101 VhdlErrorHandler *parserErrHandler=new VhdlErrorHandler(fileName.data());
102 vhdlParser->setErrorHandler(parserErrHandler);
103 try
104 {
105 if(inLine)
106 {
107 vhdlParser->parseInline();
108 }
109 else
110 {
111 // vhdlParser->interface_variable_declaration(); //interface_declaration() ;
112 vhdlParser->design_file();
113 }
114 }
115 catch( std::exception &){ /* fprintf(stderr,"\n[%s]",e.what()); */ }
116 // fprintf(stderr,"\n\nparsed lines: %d\n",yyLineNr);
117 // fprintf(stderr,"\n\nerrors : %d\n\n",myErr->getErrorCount());
118 //
119 delete vhdlParser;
120 delete tokenManager;
121 delete stream;
122}
JAVACC_CHAR_TYPE JJChar
Definition JavaCC.h:21
size_t size() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:156
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159
void setLexParser(VhdlParser *p)
Definition vhdlstring.h:20
void ReInit(JAVACC_CHARSTREAM *stream, int lexState=0)
void setErrorHandler(TokenManagerErrorHandler *eh)
VHDLOutlineParser * thisParser
VhdlParser::SharedState shared

References QCString::data(), vhdl::parser::VhdlParserTokenManager::ReInit(), vhdl::parser::VhdlParserTokenManager::setErrorHandler(), vhdl::parser::TokenParser::setLexParser(), shared, QCString::size(), thisParser, and vhdlParser.

Member Data Documentation

◆ code

int VHDLOutlineParser::Private::code = 0

Definition at line 84 of file vhdljjparser.cpp.

◆ commentScanner

CommentScanner VHDLOutlineParser::Private::commentScanner

Definition at line 63 of file vhdljjparser.cpp.

◆ forL

QCString VHDLOutlineParser::Private::forL

Definition at line 83 of file vhdljjparser.cpp.

◆ gBlock

Entry* VHDLOutlineParser::Private::gBlock = nullptr

Definition at line 70 of file vhdljjparser.cpp.

◆ iCodeLen

int VHDLOutlineParser::Private::iCodeLen

Definition at line 80 of file vhdljjparser.cpp.

◆ iDocLine

int VHDLOutlineParser::Private::iDocLine = -1

Definition at line 68 of file vhdljjparser.cpp.

◆ inputString

QCString VHDLOutlineParser::Private::inputString

Definition at line 69 of file vhdljjparser.cpp.

◆ libUse

EntryList VHDLOutlineParser::Private::libUse

Definition at line 77 of file vhdljjparser.cpp.

◆ lineEntry

EntryList VHDLOutlineParser::Private::lineEntry

Definition at line 78 of file vhdljjparser.cpp.

◆ lineParse

IntVector VHDLOutlineParser::Private::lineParse

Definition at line 67 of file vhdljjparser.cpp.

◆ oldEntry

Entry* VHDLOutlineParser::Private::oldEntry = nullptr

Definition at line 74 of file vhdljjparser.cpp.

◆ previous

Entry* VHDLOutlineParser::Private::previous = nullptr

Definition at line 71 of file vhdljjparser.cpp.

◆ shared

VhdlParser::SharedState VHDLOutlineParser::Private::shared

Definition at line 82 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ str_doc

VHDLDocInfo VHDLOutlineParser::Private::str_doc

Definition at line 81 of file vhdljjparser.cpp.

◆ strComment

QCString VHDLOutlineParser::Private::strComment

Definition at line 79 of file vhdljjparser.cpp.

◆ thisParser

VHDLOutlineParser* VHDLOutlineParser::Private::thisParser = nullptr

Definition at line 61 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ varName

QCString VHDLOutlineParser::Private::varName

Definition at line 76 of file vhdljjparser.cpp.

◆ varr

bool VHDLOutlineParser::Private::varr = FALSE

Definition at line 75 of file vhdljjparser.cpp.

◆ vhdlParser

VhdlParser* VHDLOutlineParser::Private::vhdlParser = nullptr

Definition at line 62 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ yyFileName

QCString VHDLOutlineParser::Private::yyFileName

Definition at line 65 of file vhdljjparser.cpp.

◆ yyLineNr

int VHDLOutlineParser::Private::yyLineNr = 1

Definition at line 66 of file vhdljjparser.cpp.


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