fparser.two.Fortran2008.submodule_stmt_r1117

Module containing Fortran2008 Submodule_Stmt rule R1117

Module Contents

Classes

Submodule_Stmt

Fortran 2008 rule R1117:

class fparser.two.Fortran2008.submodule_stmt_r1117.Submodule_Stmt(string, parent_cls=None)[source]

Bases: fparser.two.utils.Base, fparser.two.utils.ScopingRegionMixin

Fortran 2008 rule R1117:

submodule-stmt is SUBMODULE ( parent-identifier ) submodule-name
subclass_names = [][source]
use_names = ['Submodule_Name', 'Parent_Identifier'][source]
static match(fstring)[source]

Check whether the input matches the rule

Parameters:

fstring (st) – 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.

Return type:

Optional[Tuple[fparser.two.Fortran2008.Parent_Identifier, fparser.two.Fortran2008.Submodule_Name]]

tostr()[source]

return the fortran representation of this object

get_name()[source]

Fortran 2008 constraint C1114 return the submodule name. This is used by the base class to check whether the submodule name matches the name used for the end submodule statement if one is provided.

Returns:

the name of the submodule stored in a Name class

Return type:

fparser.two.Fortran2003.Name