fparser.two.Fortran2008.explicit_coshape_spec_r511
Module containing Fortran2008 Explicit_Coshape_Spec rule R511
Module Contents
Classes
Fortran 2008 rule R511 |
- class fparser.two.Fortran2008.explicit_coshape_spec_r511.Explicit_Coshape_Spec(string, parent_cls=None)[source]
Bases:
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.
- static match(string)[source]
Implements the matching for explicit coarray shape specification.
- Parameters:
string (str) – the string to match as deferred shape.
- Returns:
None if there is no match, otherwise a 2-tuple containing matched coshape-spec-list or None and matched lower-cobound or None.
- Return type:
NoneType or (
fparser.two.Fortran2008.Coshape_Spec_List
or None,fparser.two:Fortran2008.Lower_Cobound
or None)