fparser.two.Fortran2008.end_submodule_stmt_r1119

Module containing Fortran2008 End_Submodule_Stmt rule R1119

Module Contents

Classes

End_Submodule_Stmt

Fortran 2008 rule R1119

class fparser.two.Fortran2008.end_submodule_stmt_r1119.End_Submodule_Stmt(string, parent_cls=None)[source]

Bases: fparser.two.utils.EndStmtBase

Fortran 2008 rule R1119 end-submodule-stmt is END [ SUBMODULE [ submodule-name ] ]

subclass_names = [][source]
use_names = ['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

get_name()[source]

Fortran 2008 constraint C1114 return the submodule name as specified by the end submodule statement or None if one is not specified. This is used by the base class to check whether this name matches the submodule name.

Returns:

the name of the submodule stored in a Name class

Return type:

fparser.two.Fortran2003.Name or None