fparser.two.Fortran2008.specification_part_c1112
Module containing Fortran2008 Specification_Part constraint C1112
Module Contents
Classes
Fortran 2008 constraint C1112 |
- class fparser.two.Fortran2008.specification_part_c1112.Specification_Part_C1112(string, parent_cls=None)[source]
Bases:
fparser.two.Fortran2003.Specification_Part
Fortran 2008 constraint C1112 C1112 A submodule specification-part shall not contain a format-stmt, entry-stmt, or stmt-function-stmt.
These statements are found in the following rule hierarchy
- format-stmt Specification_Part/implicit_part/implicit_part_stmt/format_stmt
Specification_Part/declaration_construct/format_stmt
- entry-stmt Specification_Part/implicit_part/implicit_part_stmt/entry_stmt
Specification_Part/declaration_construct/entry_stmt
- stmt-function-stmt Specification_Part/declaration_construct/
stmt-function-stmt
Therefore we need to specialise implicit_part, implicit_part_stmt and declaration_construct
- use_names = ['Use_Stmt', 'Import_Stmt', 'Implicit_Part_C1112', 'Declaration_Construct_C1112'][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
- Return type:
Optional[Tuple[List[
fparser.two.utils.Base
]]]