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

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 57 of file vhdljjparser.cpp.

Member Function Documentation

◆ parseVhdlfile()

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

Definition at line 88 of file vhdljjparser.cpp.

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

References vhdl::parser::CharStream::CharStream(), DString::data(), vhdl::parser::VhdlParser::design_file(), vhdl::parser::VhdlParser::parseInline(), vhdl::parser::VhdlParserTokenManager::ReInit(), vhdl::parser::VhdlParser::setErrorHandler(), vhdl::parser::VhdlParserTokenManager::setErrorHandler(), vhdl::parser::TokenParser::setLexParser(), vhdl::parser::VhdlParser::setOutlineParser(), vhdl::parser::VhdlParser::setSharedState(), shared, DString::size(), thisParser, vhdl::parser::VhdlErrorHandler::VhdlErrorHandler(), vhdl::parser::VhdlParser::VhdlParser(), vhdlParser, vhdl::parser::VhdlParserTokenManager::VhdlParserTokenManager(), and vhdl::parser::VhdlTokenManagerErrorHandler::VhdlTokenManagerErrorHandler().

Member Data Documentation

◆ code

size_t 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

DString 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

DString 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

DString 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

DString 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

DString 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: