diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-06-10 09:28:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-06-10 09:28:22 (GMT) |
commit | 0ce3aea886f4e95da56d164b3944fd54d3d68f89 (patch) | |
tree | 6709ddc7b1764dc3b20bbac7eb36c05edcc91e03 /src/vhdlscanner.h | |
parent | 1983c30b71bf92b3fa6bfedbb98451c3b7f74498 (diff) | |
download | Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.zip Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.gz Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.bz2 |
Release-1.8.1.1
Diffstat (limited to 'src/vhdlscanner.h')
-rw-r--r-- | src/vhdlscanner.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/vhdlscanner.h b/src/vhdlscanner.h index fe75539..b245c78 100644 --- a/src/vhdlscanner.h +++ b/src/vhdlscanner.h @@ -40,7 +40,7 @@ class MemberDef; class QStringList; -/** \brief VHDL parser using state-based lexical scanning. +/** VHDL parser using state-based lexical scanning. * * This is the VHDL language parser for doxygen. */ @@ -68,8 +68,8 @@ class VHDLLanguageScanner : public ParserInterface void parsePrototype(const char *text); }; -// container for vhdlscanner -struct s_contVhdl +/** Container for vhdlscanner */ +struct VhdlContainer { int yyLineNr; // current line no int iLine; // line no of last t_identifier @@ -78,10 +78,11 @@ struct s_contVhdl Entry* root; // root }; -struct ConfNode +/** Configuation node for VHDL */ +struct VhdlConfNode { - ConfNode *prevNode; - ConfNode(const char* a,const char* b,const char* config) + VhdlConfNode *prevNode; + VhdlConfNode(const char* a,const char* b,const char* config) { arch=a; // architecture e.g. for iobuffer binding=b; // binding e.g. use entiy work.xxx(bev) @@ -95,14 +96,14 @@ struct ConfNode QCString confVhdl; QCString arch; QCString binding; - QList<ConfNode> confN; + QList<VhdlConfNode> confN; bool isBind; bool isInlineConf; bool isRoot; - void addNode(ConfNode* n) { confN.append(n); } + void addNode(VhdlConfNode* n) { confN.append(n); } bool isBinding() { return binding.isEmpty(); } -} ; +}; // returns the current conpound entity,architecture, package,package body Entry* getVhdlCompound(); @@ -114,7 +115,7 @@ void newVhdlEntry(); void initVhdlParser(); -struct s_contVhdl* getVhdlCont(); +struct VhdlContainer* getVhdlCont(); // returns the parsed line // @ param object index of vhdl keyword like t_Identifier t_Entity @@ -122,11 +123,13 @@ int getParsedLine(int object); void vhdlscanFreeScanner(); +void vhdlParse(); + // return the list of component instantiations e.g. foo: component bar QList<Entry> & getVhdlInstList(); // returns the list of found configurations -QList<ConfNode>& getVhdlConfiguration(); +QList<VhdlConfNode>& getVhdlConfiguration(); void isVhdlDocPending(); #endif |