fparser.two.Fortran2008.attr_spec_r502 ====================================== .. py:module:: fparser.two.Fortran2008.attr_spec_r502 .. autoapi-nested-parse:: Module containing Fortran2008 Attr_Spec rule R502 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.attr_spec_r502.Attr_Spec Module Contents --------------- .. py:class:: Attr_Spec(string, parent_cls=None) Bases: :py:obj:`fparser.two.Fortran2003.Attr_Spec` Fortran 2008 rule R502. .. code-block:: fortran attr-spec is access-spec or ALLOCATABLE or ASYNCHRONOUS or CODIMENSION lbracket coarray-spec rbracket or CONTIGUOUS or DIMENSION ( array-spec ) or EXTERNAL or INTENT ( intent-spec ) or INTRINSIC or language-binding-spec or OPTIONAL or PARAMETER or POINTER or PROTECTED or SAVE or TARGET or VALUE or VOLATILE 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 R503. .. py:attribute:: subclass_names :value: ['Access_Spec', 'Language_Binding_Spec', 'Dimension_Attr_Spec', 'Intent_Attr_Spec'] .. py:attribute:: use_names :value: [] .. py:method:: match(string) :staticmethod: Implements the matching for attributes of types. :param str string: the string to match as attribute. :return: `None` if there is no match, otherwise a 1-tuple containing the matched string. :rtype: `NoneType` or (`str`,)