fparser.two.Fortran2008.coshape_spec_r511a ========================================== .. py:module:: fparser.two.Fortran2008.coshape_spec_r511a .. autoapi-nested-parse:: Module containing Fortran2008 Coshape_Spec rule R511.a Classes ------- .. autoapisummary:: fparser.two.Fortran2008.coshape_spec_r511a.Coshape_Spec Module Contents --------------- .. py:class:: Coshape_Spec(string, parent_cls=None) Bases: :py:obj:`fparser.two.utils.SeparatorBase` coshape-spec is [ lower-cobound : ] upper-cobound .. py:attribute:: subclass_names :value: [] .. py:attribute:: use_names :value: ['Lower_Cobound', 'Upper_Cobound'] .. py:method:: match(string) :staticmethod: Implements the matching for a coarray shape. :param str string: the string to match as shape. :return: `None` if there is no match, otherwise a 2-tuple with lower bound if given or `None`, and upper bound. :rtype: `NoneType` or (`None`, :py:class:`fparser.two.Fortran2008.Upper_Cobound`) or (:py:class:`fparser.two.Fortran2008.Lower_Cobound`, :py:class:`fparser.two.Fortran2008.Upper_Cobound`) .. py:method:: tostr() Converts the Shape specification to string. :return: the shape specification as string. :rtype: str