fparser.two.Fortran2008.format_item_r1003 ========================================= .. py:module:: fparser.two.Fortran2008.format_item_r1003 .. autoapi-nested-parse:: Module containing Fortran 2008 Format_Item rule R1003 Classes ------- .. autoapisummary:: fparser.two.Fortran2008.format_item_r1003.Format_Item Module Contents --------------- .. py:class:: Format_Item(string, parent_cls=None) Bases: :py:obj:`fparser.two.Fortran2003.Format_Item` Fortran 2008 rule R1003 format-item is [ r ] data-edit-desc or control-edit-desc or char-string-edit-desc or [ r ] ( format-item-list ) or format-item-c1002 or hollerith-item or * ( format-item-list ) Extends the Fortran 2003 rule R1003 with the additional unlimited format repeat specifier ``*`` before a parenthesised format-item-list. .. py:attribute:: subclass_names :value: ['Hollerith_Item', 'Control_Edit_Desc', 'Char_String_Edit_Desc', 'Format_Item_C1002', 'Format_Item'] .. py:attribute:: use_names :value: ['R', 'Format_Item_List', 'Data_Edit_Desc'] .. py:method:: match(string: str) -> Optional[Tuple[Union[str, fparser.two.Fortran2003.Digit_String], Union[fparser.two.Fortran2003.Format_Item, fparser.two.Fortran2003.Format_Item_List]]] :staticmethod: Attempts to match the supplied text with this rule. Calls the Fortran 2003 match first. If that fails, checks for the Fortran 2008 unlimited format repeat: ``*(format-item-list)``. :param string: Fortran code to check for a match. :returns: None if there is no match, a tuple of size 2 containing a repeat specifier (``"*"`` or a Repeat instance) and the matched descriptor or format-item-list.