fparser.two.Fortran2008.codimension_attr_spec_r502d

Module containing Fortran2008 Codimension_Attr_Spec rule R502.d

Module Contents

Classes

Codimension_Attr_Spec

codimension-attr-spec is CODIMENSION lbracket coarray-spec rbracket

class fparser.two.Fortran2008.codimension_attr_spec_r502d.Codimension_Attr_Spec(string, parent_cls=None)[source]

Bases: fparser.two.utils.WORDClsBase

codimension-attr-spec is CODIMENSION lbracket coarray-spec rbracket

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

subclass_names = [][source]
use_names = ['Coarray_Bracket_Spec'][source]
static match(string)[source]

Implements the matching for the CODIMENSION attribute.

Parameters:

string (str) – the string to match as the attribute.

Returns:

None if there is no match, otherwise a 2-tuple containing CODIMENSION as a string and the matched coarray-spec..

Return type:

NoneType or (str, fparser.two.Fortran2008.Coarray_Bracket_Spec,)