4 #include "parserintf.h"
16 #include "vhdldocgen.h"
17 #include "qstringlist.h"
19 #include "memberlist.h"
25 enum { GEN_SEC=0x1, PARAM_SEC,CONTEXT_SEC,PROTECTED_SEC } ;
26 void parserVhdlfile(const char* inputBuffer);
37 /** \brief VHDL parser using state-based lexical scanning.
39 * This is the VHDL language parser for doxygen.
41 class VHDLLanguageScanner : public ParserInterface
44 virtual ~VHDLLanguageScanner() {}
45 void startTranslationUnit(const char *) {}
46 void finishTranslationUnit() {}
47 void parseInput(const char * fileName,
50 bool sameTranslationUnit,
51 QStrList &filesInSameTranslationUnit);
53 void parseCode(CodeOutputInterface &codeOutIntf,
54 const char *scopeName,
55 const QCString &input,
58 const char *exampleName=0,
62 bool inlineFragment=FALSE,
63 MemberDef *memberDef=0,
64 bool showLineNumbers=TRUE,
65 Definition *searchCtx=0,
66 bool collectXRefs=TRUE
68 bool needsPreprocessing(const QCString &) { return TRUE; }
69 void resetCodeParserState(){};
70 void parsePrototype(const char *text);
75 VhdlConfNode(const char* a,const char* b,const char* config,const char* cs,bool leaf)
77 arch=a; // architecture e.g. for iobuffer
79 binding=b; // binding e.g. use entiy work.xxx(bev)
80 binding=binding.lower();
81 confVhdl=config; // configuration foo is bar
83 isInlineConf=false; // primary configuration?
97 void vhdlscanFreeScanner();
99 QList<VhdlConfNode>& getVhdlConfiguration();
100 QList<Entry>& getVhdlInstList();