Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
fortrancode.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
*/
17
18
#ifndef FORTRANCODE_H
19
#define FORTRANCODE_H
20
21
#include "
parserintf.h
"
22
23
class
OutputCodeList
;
24
class
FileDef
;
25
class
MemberDef
;
26
class
QCString
;
27
class
Definition
;
28
29
class
FortranCodeParser
:
public
CodeParserInterface
30
{
31
public
:
32
FortranCodeParser
(
FortranFormat
format=
FortranFormat::Unknown
);
33
~FortranCodeParser
()
override
;
34
NON_COPYABLE
(
FortranCodeParser
)
35
36
void
parseCode
(
OutputCodeList
&codeOutIntf,
37
const
QCString
&scopeName,
38
const
QCString
&input,
39
SrcLangExt
lang,
40
bool
stripCodeComments,
41
const
CodeParserOptions
&options
42
)
override
;
43
void
resetCodeParserState
()
override
;
44
45
private
:
46
struct
Private
;
47
std::unique_ptr<Private>
p
;
48
};
49
50
class
FortranCodeParserFree
:
public
FortranCodeParser
51
{
52
public
:
53
FortranCodeParserFree
() :
FortranCodeParser
(
FortranFormat
::
Free
) { }
54
};
55
56
class
FortranCodeParserFixed
:
public
FortranCodeParser
57
{
58
public
:
59
FortranCodeParserFixed
() :
FortranCodeParser
(
FortranFormat
::
Fixed
) { }
60
};
61
62
#endif
CodeParserInterface
Abstract interface for code parsers.
Definition
parserintf.h:142
Definition
The common base class of all entity definitions found in the sources.
Definition
definition.h:77
FileDef
A model of a file symbol.
Definition
filedef.h:99
FortranCodeParserFixed::FortranCodeParserFixed
FortranCodeParserFixed()
Definition
fortrancode.h:59
FortranCodeParserFree::FortranCodeParserFree
FortranCodeParserFree()
Definition
fortrancode.h:53
FortranCodeParser::resetCodeParserState
void resetCodeParserState() override
Resets the state of the code parser.
Definition
fortrancode.l:1468
FortranCodeParser::FortranCodeParser
FortranCodeParser(FortranFormat format=FortranFormat::Unknown)
Definition
fortrancode.l:1453
FortranCodeParser::parseCode
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.
Definition
fortrancode.l:1478
FortranCodeParser::p
std::unique_ptr< Private > p
Definition
fortrancode.h:47
FortranCodeParser::~FortranCodeParser
~FortranCodeParser() override
Definition
fortrancode.l:1463
MemberDef
A model of a class/file/namespace member symbol.
Definition
memberdef.h:48
OutputCodeList
Class representing a list of different code generators.
Definition
outputlist.h:165
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
parserintf.h
CodeParserOptions
Options to configure the code parser.
Definition
parserintf.h:78
FortranCodeParser::Private
Definition
fortrancode.l:1447
SrcLangExt
SrcLangExt
Definition
types.h:207
FortranFormat
FortranFormat
Definition
types.h:572
FortranFormat::Fixed
@ Fixed
Definition
types.h:575
FortranFormat::Unknown
@ Unknown
Definition
types.h:573
FortranFormat::Free
@ Free
Definition
types.h:574
src
fortrancode.h
Generated by
1.17.0