|
Doxygen
|
Abstract interface for code parsers. More...
#include <src/parserintf.h>
Public Member Functions | |
| virtual void | parseCode (OutputCodeList &codeOutList, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool stripCodeComments, const CodeParserOptions &options)=0 |
| Parses a source file or fragment with the goal to produce highlighted and cross-referenced output. | |
| virtual void | resetCodeParserState ()=0 |
| Resets the state of the code parser. | |
Abstract interface for code parsers.
By implementing the methods of this interface one can add a new language parser to doxygen. This interface is used for syntax highlighting, but also to extract cross references and call graphs.
Definition at line 141 of file parserintf.h.
|
pure virtual |
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. |
Implemented in CCodeParser, FileCodeParser, FortranCodeParser, LexCodeParser, PythonCodeParser, SQLCodeParser, VHDLCodeParser, and XMLCodeParser.
References parseCode().
Referenced by DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), and parseCode().
|
pure virtual |
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.
Implemented in CCodeParser, FileCodeParser, FortranCodeParser, LexCodeParser, PythonCodeParser, SQLCodeParser, VHDLCodeParser, and XMLCodeParser.
References resetCodeParserState().
Referenced by resetCodeParserState().