fparser.two.Fortran2008.coarray_bracket_spec_r502d0
Module containing Fortran2008 Coarray_Bracket_Spec rule R502.d.0
Module Contents
Classes
coarray-bracket-spec is lbracket coarray-spec rbracket |
- class fparser.two.Fortran2008.coarray_bracket_spec_r502d0.Coarray_Bracket_Spec(string, parent_cls=None)[source]
Bases:
fparser.two.utils.BracketBase
coarray-bracket-spec is lbracket coarray-spec rbracket
In the spec above, lbracket and rbracket are left and right square brackets [] but not printed explicitly to avoid misinterpretation as optional parts.
- static match(string)[source]
Implements the matching for the coarray specification including the square brackets.
- Parameters:
string (str) – the string to match as the specification.
- Returns:
None if there is no match, otherwise a 3-tuple containing the left bracket, the matched coarray-spec, and the right bracket.
- Return type:
NoneType or (str,
fparser.two.Fortran2008.Coarray_Spec
, str)