fparser.two.Fortran2008.explicit_coshape_spec_r511 ================================================== .. py:module:: fparser.two.Fortran2008.explicit_coshape_spec_r511 .. autoapi-nested-parse:: Module containing Fortran2008 Explicit_Coshape_Spec rule R511 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.explicit_coshape_spec_r511.Explicit_Coshape_Spec Module Contents --------------- .. py:class:: Explicit_Coshape_Spec(string, parent_cls=None) Bases: :py:obj:`fparser.two.utils.SeparatorBase` Fortran 2008 rule R511 explicit-coshape-spec is [ coshape-spec-list , ] [ lower-cobound : ] * Associated constraint is: "C529 (R511) A lower-cobound or upper-cobound that is not a constant expression shall appear only in a subprogram, BLOCK construct, or interface body." C529 is currently not checked - issue #259. .. py:attribute:: subclass_names :value: [] .. py:attribute:: use_names :value: ['Coshape_Spec_List', 'Lower_Cobound'] .. py:method:: match(string) :staticmethod: Implements the matching for explicit coarray shape specification. :param str string: the string to match as deferred shape. :return: `None` if there is no match, otherwise a 2-tuple containing matched coshape-spec-list or `None` and matched lower-cobound or `None`. :rtype: `NoneType` or (:py:class:`fparser.two.Fortran2008.Coshape_Spec_List` or `None`, :py:class:`fparser.two:Fortran2008.Lower_Cobound` or `None`) .. py:method:: tostr() Converts the explicit coarray shape specification to string. :return: the shape specification as string. :rtype: str