Doxygen
|
Python Language parser using state-based lexical scanning. More...
#include <src/pyscanner.h>
Classes | |
struct | Private |
Public Member Functions | |
PythonOutlineParser () | |
~PythonOutlineParser () override | |
void | parseInput (const QCString &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 QCString &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 QCString &text) override |
Callback function called by the comment block scanner. | |
Public Member Functions inherited from OutlineParserInterface |
Private Attributes | |
std::unique_ptr< Private > | p |
Python Language parser using state-based lexical scanning.
This is the Python language parser for doxygen.
Definition at line 34 of file pyscanner.h.
PythonOutlineParser::PythonOutlineParser | ( | ) |
Definition at line 2334 of file pyscanner.l.
References Debug::isFlagSet(), Debug::Lex_pyscanner, p, and PythonOutlineParser().
Referenced by PythonOutlineParser().
|
override |
Definition at line 2342 of file pyscanner.l.
References p.
|
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 2362 of file pyscanner.l.
References FALSE.
|
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 2348 of file pyscanner.l.
References Debug::Lex_pyscanner, p, parseMain(), and qPrint().
|
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 2367 of file pyscanner.l.
References p, and parsePrototype().
Referenced by parsePrototype().
|
private |
Definition at line 48 of file pyscanner.h.
Referenced by parseInput(), parsePrototype(), PythonOutlineParser(), and ~PythonOutlineParser().