fparser.two.Fortran2008.submodule_r1116
Module containing Fortran2008 Submodule rule R1116
Module Contents
Classes
Fortran 2008 rule R1116. |
- class fparser.two.Fortran2008.submodule_r1116.Submodule(string, parent_cls=None)[source]
Bases:
fparser.two.utils.BlockBase
Fortran 2008 rule R1116.
submodule is submodule-stmt [ specification-part ] [ module-subprogram-part ] end-submodule-stmt
C1112 A submodule specification-part shall not contain a format-stmt, entry-stmt, or stmt-function-stmt. This constraint is handled by specialising the Specification_Part class.
C1114 If a submodule-name appears in the end-submodule-stmt, it shall be identical to the one in the submodule-stmt. This constraint is handled by the Base class with the names being provided by the ‘Submodule_Stmt and ‘End_Submodule_Stmt’ classes via a get_name method.
- use_names = ['Submodule_Stmt', 'Specification_Part_C1112', 'Module_Subprogram_Part', 'End_Submodule_Stmt'][source]
- static match(reader)[source]
Check whether the input matches the rule
- param reader: the fortran file reader containing the line(s)
of code that we are trying to match
- Returns:
tuple containing a single list which contains instance of the classes that have matched if there is a match or None if there is no match