fparser.two.Fortran2008.submodule_r1116 ======================================= .. py:module:: fparser.two.Fortran2008.submodule_r1116 .. autoapi-nested-parse:: Module containing Fortran2008 Submodule rule R1116 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.submodule_r1116.Submodule Module Contents --------------- .. py:class:: Submodule(string, parent_cls=None) Bases: :py:obj:`fparser.two.utils.BlockBase` Fortran 2008 rule R1116. .. code-block:: fortran 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. .. py:attribute:: subclass_names :value: [] .. py:attribute:: use_names :value: ['Submodule_Stmt', 'Specification_Part_C1112', 'Module_Subprogram_Part', 'End_Submodule_Stmt'] .. py:method:: match(reader) :staticmethod: 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 :type reader: :py:class:`fparser.common.readfortran.FortranFileReader` or :py:class:`fparser.common.readfortran.FortranStringReader` :return: `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