|
Doxygen
|
Fortran language parser using state-based lexical scanning. More...
#include <src/fortranscanner.h>
Classes | |
| struct | Private |
Public Member Functions | |
| FortranOutlineParser (FortranFormat format=FortranFormat::Unknown) | |
| ~FortranOutlineParser () override | |
| void | parseInput (const DString &fileName, const char *fileBuf, const std::shared_ptr< Entry > &root, ClangTUParser *clangParser) override |
| Parses a single input file with the goal to build an Entry tree. | |
| bool | needsPreprocessing (const DString &extension) const override |
| Returns true if the language identified by extension needs the C preprocessor to be run before feed the result to the input parser. | |
| void | parsePrototype (const DString &text) override |
| Callback function called by the comment block scanner. | |
Private Attributes | |
| std::unique_ptr< Private > | p |
Fortran language parser using state-based lexical scanning.
This is the Fortran language parser for doxygen.
Definition at line 25 of file fortranscanner.h.
| FortranOutlineParser::FortranOutlineParser | ( | FortranFormat | format = FortranFormat::Unknown | ) |
Definition at line 3437 of file fortranscanner.l.
References p.
Referenced by FortranOutlineParserFixed::FortranOutlineParserFixed(), FortranOutlineParserFree::FortranOutlineParserFree(), and ~FortranOutlineParser().
|
overridedefault |
References FortranOutlineParser(), needsPreprocessing(), NON_COPYABLE, parseInput(), and parsePrototype().
|
overridevirtual |
Returns true if the language identified by extension needs the C preprocessor to be run before feed the result to the input parser.
Implements OutlineParserInterface.
Definition at line 3457 of file fortranscanner.l.
References DString::lower().
Referenced by ~FortranOutlineParser().
|
overridevirtual |
Parses a single input file with the goal to build an Entry tree.
| [in] | fileName | The full name of the file. |
| [in] | fileBuf | The contents of the file (zero terminated). |
| [in,out] | root | The root of the tree of Entry *nodes representing the information extracted from the file. |
| [in] | clangParser | The clang translation unit parser object or nullptr if disabled. |
Implements OutlineParserInterface.
Definition at line 3444 of file fortranscanner.l.
References Debug::Lex_fortranscanner, p, parseMain(), and qPrint().
Referenced by ~FortranOutlineParser().
|
overridevirtual |
Callback function called by the comment block scanner.
It provides a string text containing the prototype of a function or variable. The parser should parse this and store the information in the Entry node that corresponds with the node for which the comment block parser was invoked.
Implements OutlineParserInterface.
Definition at line 3462 of file fortranscanner.l.
References p, popBuffer(), and pushBuffer().
Referenced by ~FortranOutlineParser().
|
private |
Definition at line 40 of file fortranscanner.h.
Referenced by FortranOutlineParser(), parseInput(), and parsePrototype().