fparser.two.Fortran2008.type_declaration_stmt_r501
Module containing Fortran2008 Type_Declaration_Stmt rule R501
Module Contents
Classes
Fortran 2008 rule 501. |
- class fparser.two.Fortran2008.type_declaration_stmt_r501.Type_Declaration_Stmt(string, parent_cls=None)[source]
Bases:
fparser.two.Fortran2003.Type_Declaration_Stmt
Fortran 2008 rule 501.
type-declaration-stmt is declaration-type-spec [ [ , attr-spec ] ... :: ] entity-decl-list
The implementation of this rule does not add anything to the Fortran 2003 variant but overwrites
get_attr_spec_list_cls()
to use the Fortran 2008 variant ofAttr_Spec_List
.Associated constraints are:
- “C501 (R501) The same attr-spec shall not appear more than once in a given
type-declaration-stmt.”
- “C502 (R501) If a language-binding-spec with a NAME= specifier appears,
the entity-decl-list shall consist of a single entity-decl.”
- “C503 (R501) If a language-binding-spec is specified, the entity-decl-list
shall not contain any procedure names.”
- “C505 (R501) If initialization appears, a double-colon separator shall
appear before the entity-decl-list.”
C501-C503, C505 are currently not checked - issue #259.