fparser.two.Fortran2008.parent_identifier_r1118

Module containing Fortran2008 Parent_Identifier rule R1118

Module Contents

Classes

Parent_Identifier

Fortran 2008 rule R1118

class fparser.two.Fortran2008.parent_identifier_r1118.Parent_Identifier(string, parent_cls=None)[source]

Bases: fparser.two.utils.Base

Fortran 2008 rule R1118 parent-identifier is ancestor-module-name [ : parent-submodule-name ]

C1113 The ancestor-module-name shall be the name of a nonintrinsic module; the parent-submodule name shall be the name of a descendant of that module. This constraint can not be tested by fparser in general as the module or submodule may be in a different file. We therefore do not check this constraint in fparser.

use_names = ['Ancestor_Module_Name', 'Parent_SubModule_Name'][source]
static match(fstring)[source]

Check whether the input matches the rule

param string fstring : contains the Fortran that we are trying to match

Returns:

instances of the Classes that have matched if there

is a match or None if there is no match

tostr()[source]

return the fortran representation of this object