|
Doxygen
|
Generic code parser. More...
#include <src/fileparser.h>
Public Member Functions | |
| void | parseCode (OutputCodeList &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, 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. | |
Generic code parser.
Definition at line 22 of file fileparser.h.
|
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 20 of file fileparser.cpp.
References OutputCodeList::codify(), QCString::data(), OutputCodeList::endCodeLine(), CodeParserOptions::endLine(), CodeParserOptions::fileDef(), CodeParserOptions::inlineFragment(), QCString::isEmpty(), QCString::length(), QCString::mid(), CodeParserOptions::showLineNumbers(), OutputCodeList::startCodeLine(), CodeParserOptions::startLine(), and OutputCodeList::writeLineNumber().
|
inlineoverridevirtual |
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 32 of file fileparser.h.