Fortran 2003 Rule R612
data-ref is part-ref [ % part-ref ] ...
If there is only one part-ref then return a 'Part_Ref' object (or
another object from a matching sub-rule). If there is more than
one part-ref then return a 'Data_Ref' object containing the
part-ref's.
Definition at line 4631 of file Fortran2003.py.
◆ match()
def fparser.two.Fortran2003.Data_Ref.match |
( |
|
string | ) |
|
|
static |
Implements the matching for a data-reference. This defines a series
of dereferences e.g. a%b%c.
If there is more than one part-ref then return a 'Data_Ref'
object containing the part-ref's, otherwise return 'None'. A
single 'part-ref' is purposely not matched here.
:param str string: Fortran code to check for a match
:return: `None` if there is no match, or a tuple containing \
the matched operator as a string and another tuple \
containing the matched subclasses.
:rtype: NoneType or (str, (obj, obj, ...))
Definition at line 4648 of file Fortran2003.py.
4649 """Implements the matching for a data-reference. This defines a series 4650 of dereferences e.g. a%b%c. 4652 If there is more than one part-ref then return a 'Data_Ref' 4653 object containing the part-ref's, otherwise return 'None'. A 4654 single 'part-ref' is purposely not matched here. 4656 :param str string: Fortran code to check for a match 4658 :return: `None` if there is no match, or a tuple containing \ 4659 the matched operator as a string and another tuple \ 4660 containing the matched subclasses. 4662 :rtype: NoneType or (str, (obj, obj, ...)) 4667 result = SequenceBase.match(
r"%", Part_Ref, string)
4669 if len(entries) > 1:
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/fparser-ref/checkouts/342_reference_guide/src/fparser/two/Fortran2003.py