diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-03 19:54:36 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-03 19:54:36 (GMT) |
commit | 3bda58a7b7b4f9094c2fcb2bad71c7174367605e (patch) | |
tree | 6b71e41e85f4dfd8822e2734c73bf7ff64b1fe35 /src/fortranscanner.l | |
parent | 9b14bf58c30a02ef19abebec280568532dc58ed4 (diff) | |
download | Doxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.zip Doxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.tar.gz Doxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.tar.bz2 |
Split language parser into "outline parser" and "code parser"
Diffstat (limited to 'src/fortranscanner.l')
-rw-r--r-- | src/fortranscanner.l | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/src/fortranscanner.l b/src/fortranscanner.l index e0d6d63..9178f80 100644 --- a/src/fortranscanner.l +++ b/src/fortranscanner.l @@ -136,7 +136,7 @@ static const char *directionParam[] = * * statics */ -static ParserInterface *g_thisParser; +static OutlineParserInterface *g_thisParser; static const char * inputString; static int inputPosition; static bool isFixedForm; @@ -2757,7 +2757,7 @@ static void parseMain(const char *fileName,const char *fileBuf, //---------------------------------------------------------------------------- -void FortranLanguageScanner::parseInput(const char *fileName, +void FortranOutlineParser::parseInput(const char *fileName, const char *fileBuf, const std::unique_ptr<Entry> &root, bool /*sameTranslationUnit*/, @@ -2772,37 +2772,11 @@ void FortranLanguageScanner::parseInput(const char *fileName, printlex(yy_flex_debug, FALSE, __FILE__, fileName); } -void FortranLanguageScanner::parseCode(CodeOutputInterface & codeOutIntf, - const char * scopeName, - const QCString & input, - SrcLangExt /*lang*/, - bool isExampleBlock, - const char * exampleName, - FileDef * fileDef, - int startLine, - int endLine, - bool inlineFragment, - const MemberDef *memberDef, - bool showLineNumbers, - const Definition *searchCtx, - bool collectXRefs - ) -{ - ::parseFortranCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName, - fileDef,startLine,endLine,inlineFragment,memberDef, - showLineNumbers,searchCtx,collectXRefs,m_format); -} - -bool FortranLanguageScanner::needsPreprocessing(const QCString &extension) const +bool FortranOutlineParser::needsPreprocessing(const QCString &extension) const { return extension!=extension.lower(); // use preprocessor only for upper case extensions } -void FortranLanguageScanner::resetCodeParserState() -{ - ::resetFortranCodeParserState(); -} - -void FortranLanguageScanner::parsePrototype(const char *text) +void FortranOutlineParser::parsePrototype(const char *text) { QCString buffer = QCString(text); pushBuffer(buffer); @@ -2813,6 +2787,8 @@ void FortranLanguageScanner::parsePrototype(const char *text) popBuffer(); } +//---------------------------------------------------------------------------- + static void scanner_abort() { fprintf(stderr,"********************************************************************\n"); |