fparser.two.Fortran2008.component_attr_spec_r437

Module containing Fortran2008 Component_Attr_Spec rule R437

Module Contents

Classes

Component_Attr_Spec

Fortran 2008 rule R437.

class fparser.two.Fortran2008.component_attr_spec_r437.Component_Attr_Spec(string, parent_cls=None)[source]

Bases: fparser.two.Fortran2003.Component_Attr_Spec

Fortran 2008 rule R437.

component-attr-spec is access-spec
                       or ALLOCATABLE
                       or CODIMENSION lbracket coarray-spec rbracket
                       or CONTIGUOUS
                       or DIMENSION ( component-array-spec )
                       or POINTER

In the spec above, lbracket and rbracket are left and right square brackets [] but not printed explicitly to avoid misinterpretation as optional parts.

This rule adds CODIMENSION and CONTIGUOUS attributes to Fortran2003’s R441.

subclass_names[source]
attributes[source]