PyForTool
Python-fortran-tool
|
Classes | |
class | PYFTError |
Functions | |
debugDecor (func) | |
noParallel (func) | |
setVerbosity (level) | |
printInfos () | |
fortran2xml (fortranSource, parser='fxtran', parserOptions=None, wrapH=False) | |
tostring (doc) | |
tofortran (doc) | |
isint (string) | |
Other. | |
isfloat (string) | |
tag (elem) | |
Helper functions acting on the xml. | |
n2name (nodeN) | |
alltext (doc) | |
nonCode (elem) | |
isExecutable (elem) | |
isConstruct (elem) | |
isStmt (elem) | |
Variables | |
dict | debugStats = {} |
Verbosity, decorators and Exception. | |
SHARED_TREE | |
This module implements some tools to manipulate the xml
pyfortool.util.alltext | ( | doc | ) |
pyfortool.util.debugDecor | ( | func | ) |
pyfortool.util.fortran2xml | ( | fortranSource, | |
parser = 'fxtran' , |
|||
parserOptions = None , |
|||
wrapH = False |
|||
) |
:param fortranSource: a string containing a fortran source code or a filename :param parser: path to the fxtran parser :param parserOptions: dictionnary holding the parser options :param wrapH: if True, content of .h file is put in a .F90 file (to force fxtran to recognize it as free form) inside a module (to enable the reading of files containing only a code part) :returns: (includesRemoved, xml) where includesRemoved indicates if an include was replaced by fxtran and xml is an ET xml document
pyfortool.util.isConstruct | ( | elem | ) |
pyfortool.util.isExecutable | ( | elem | ) |
pyfortool.util.isfloat | ( | string | ) |
pyfortool.util.isint | ( | string | ) |
pyfortool.util.isStmt | ( | elem | ) |
pyfortool.util.n2name | ( | nodeN | ) |
pyfortool.util.nonCode | ( | elem | ) |
pyfortool.util.noParallel | ( | func | ) |
pyfortool.util.printInfos | ( | ) |
pyfortool.util.setVerbosity | ( | level | ) |
pyfortool.util.tag | ( | elem | ) |
pyfortool.util.tofortran | ( | doc | ) |
pyfortool.util.tostring | ( | doc | ) |
dict pyfortool.util.debugStats = {} |