|
Doxygen
|
LEX code scanner. More...
#include <src/lexcode.h>
Classes | |
| struct | Private |
Public Member Functions | |
| LexCodeParser () | |
| ~LexCodeParser () override | |
| void | parseCode (OutputCodeList &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt, bool stripCodeComments, const CodeParserOptions &options) override |
| Parses a source file or fragment with the goal to produce highlighted and cross-referenced output. | |
| void | resetCodeParserState () override |
| Resets the state of the code parser. | |
Private Attributes | |
| std::unique_ptr< Private > | p |
| LexCodeParser::LexCodeParser | ( | ) |
Definition at line 1173 of file lexcode.l.
References Debug::isFlagSet(), Debug::Lex_lexcode, and p.
|
override |
|
overridevirtual |
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
| [in] | codeOutList | interface for writing the result. |
| [in] | scopeName | Name of scope to which the code belongs. |
| [in] | input | Actual code in the form of a string |
| [in] | lang | The programming language of the code fragment. |
| [in] | stripCodeComments | signals whether or not for the code block the doxygen comments should be stripped. |
| [in] | options | Additional options to configure the parser. |
Implements CodeParserInterface.
Definition at line 1194 of file lexcode.l.
References CodeParserOptions::collectXRefs(), countLines(), createFileDef(), QCString::data(), endCodeLine(), CodeParserOptions::endLine(), CodeParserOptions::exampleName(), CodeParserOptions::fileDef(), FileDef::fileName(), CodeParserOptions::inlineFragment(), QCString::isEmpty(), CodeParserOptions::isExample(), Debug::Lex_lexcode, CodeParserOptions::memberDef(), p, qPrint(), CodeParserOptions::searchCtx(), setCurrentDoc(), CodeParserOptions::showLineNumbers(), startCodeLine(), and CodeParserOptions::startLine().
|
overridevirtual |
Resets the state of the code parser.
Since multiple code fragments can together form a single example, an explicit function is used to reset the code parser state.
Implements CodeParserInterface.
Definition at line 1187 of file lexcode.l.
References p.
|
private |
Definition at line 46 of file lexcode.h.
Referenced by LexCodeParser(), parseCode(), resetCodeParserState(), and ~LexCodeParser().