Skip to main content

The Private Struct Reference

Declaration

struct VHDLOutlineParser::Private { ... }

Public Member Functions Index

voidparseVhdlfile (const QCString &fileName, const QCString &inputBuffer, bool inLine)

Public Member Attributes Index

VHDLOutlineParser *thisParser = nullptr
VhdlParser *vhdlParser = nullptr
CommentScannercommentScanner
QCStringyyFileName
intyyLineNr = 1
IntVectorlineParse
intiDocLine = -1
QCStringinputString
Entry *gBlock = nullptr
Entry *previous = nullptr
Entry *oldEntry = nullptr
boolvarr = FALSE
QCStringvarName
EntryListlibUse
EntryListlineEntry
QCStringstrComment
intiCodeLen
VHDLDocInfostr_doc
VhdlParser::SharedStateshared
QCStringforL
intcode = 0

Definition at line 57 of file vhdljjparser.cpp.

Public Member Functions

parseVhdlfile()

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

Definition at line 59 of file vhdljjparser.cpp.

89 const QCString &inputBuffer,bool inLine)
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);
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}

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

Public Member Attributes

code

int VHDLOutlineParser::Private::code = 0

Definition at line 84 of file vhdljjparser.cpp.

84 int code = 0;

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.

70 Entry* gBlock = nullptr;

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.

68 int iDocLine = -1;

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.

74 Entry* oldEntry = nullptr;

previous

Entry* VHDLOutlineParser::Private::previous = nullptr

Definition at line 71 of file vhdljjparser.cpp.

71 Entry* previous = nullptr;

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.

75 bool varr = FALSE;

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.

66 int yyLineNr = 1;

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


Generated via doxygen2docusaurus by Doxygen 1.14.0.