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 56 of file vhdljjparser.cpp.

Member Function Documentation

◆ parseVhdlfile()

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

Definition at line 87 of file vhdljjparser.cpp.

89{
90 CharStream *stream = new CharStream(reinterpret_cast<const JJChar*>(inputBuffer.data()), (int)inputBuffer.size(), 1, 1);
91 VhdlParserTokenManager *tokenManager = new VhdlParserTokenManager(stream);
92 VhdlTokenManagerErrorHandler *tokErrHandler=new VhdlTokenManagerErrorHandler(fileName.data());
93 vhdlParser=new VhdlParser(tokenManager);
94 vhdlParser->setOutlineParser(thisParser);
95 vhdlParser->setSharedState(&shared);
96 tokenManager->setLexParser(vhdlParser);
97 tokenManager->ReInit(stream,0);
98 tokenManager->setErrorHandler(tokErrHandler);
99 VhdlErrorHandler *parserErrHandler=new VhdlErrorHandler(fileName.data());
100 vhdlParser->setErrorHandler(parserErrHandler);
101 try
102 {
103 if(inLine)
104 {
105 vhdlParser->parseInline();
106 }
107 else
108 {
109 // vhdlParser->interface_variable_declaration(); //interface_declaration() ;
110 vhdlParser->design_file();
111 }
112 }
113 catch( std::exception &){ /* fprintf(stderr,"\n[%s]",e.what()); */ }
114 // fprintf(stderr,"\n\nparsed lines: %d\n",yyLineNr);
115 // fprintf(stderr,"\n\nerrors : %d\n\n",myErr->getErrorCount());
116 //
117 delete vhdlParser;
118 delete tokenManager;
119 delete stream;
120}
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:169
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:172
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 83 of file vhdljjparser.cpp.

◆ commentScanner

CommentScanner VHDLOutlineParser::Private::commentScanner

Definition at line 62 of file vhdljjparser.cpp.

◆ forL

QCString VHDLOutlineParser::Private::forL

Definition at line 82 of file vhdljjparser.cpp.

◆ gBlock

Entry* VHDLOutlineParser::Private::gBlock = nullptr

Definition at line 69 of file vhdljjparser.cpp.

◆ iCodeLen

int VHDLOutlineParser::Private::iCodeLen

Definition at line 79 of file vhdljjparser.cpp.

◆ iDocLine

int VHDLOutlineParser::Private::iDocLine = -1

Definition at line 67 of file vhdljjparser.cpp.

◆ inputString

QCString VHDLOutlineParser::Private::inputString

Definition at line 68 of file vhdljjparser.cpp.

◆ libUse

EntryList VHDLOutlineParser::Private::libUse

Definition at line 76 of file vhdljjparser.cpp.

◆ lineEntry

EntryList VHDLOutlineParser::Private::lineEntry

Definition at line 77 of file vhdljjparser.cpp.

◆ lineParse

IntVector VHDLOutlineParser::Private::lineParse

Definition at line 66 of file vhdljjparser.cpp.

◆ oldEntry

Entry* VHDLOutlineParser::Private::oldEntry = nullptr

Definition at line 73 of file vhdljjparser.cpp.

◆ previous

Entry* VHDLOutlineParser::Private::previous = nullptr

Definition at line 70 of file vhdljjparser.cpp.

◆ shared

VhdlParser::SharedState VHDLOutlineParser::Private::shared

Definition at line 81 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ str_doc

VHDLDocInfo VHDLOutlineParser::Private::str_doc

Definition at line 80 of file vhdljjparser.cpp.

◆ strComment

QCString VHDLOutlineParser::Private::strComment

Definition at line 78 of file vhdljjparser.cpp.

◆ thisParser

VHDLOutlineParser* VHDLOutlineParser::Private::thisParser = nullptr

Definition at line 60 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ varName

QCString VHDLOutlineParser::Private::varName

Definition at line 75 of file vhdljjparser.cpp.

◆ varr

bool VHDLOutlineParser::Private::varr = FALSE

Definition at line 74 of file vhdljjparser.cpp.

◆ vhdlParser

VhdlParser* VHDLOutlineParser::Private::vhdlParser = nullptr

Definition at line 61 of file vhdljjparser.cpp.

Referenced by parseVhdlfile().

◆ yyFileName

QCString VHDLOutlineParser::Private::yyFileName

Definition at line 64 of file vhdljjparser.cpp.

◆ yyLineNr

int VHDLOutlineParser::Private::yyLineNr = 1

Definition at line 65 of file vhdljjparser.cpp.


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