fparser Reference Guide  0.0.14
fparser.two.Fortran2003.Parenthesis Class Reference
Inheritance diagram for fparser.two.Fortran2003.Parenthesis:
Collaboration diagram for fparser.two.Fortran2003.Parenthesis:

Static Public Member Functions

def match (string)
 

Static Public Attributes

 subclass_names
 
 use_names
 

Detailed Description

Part of Fortran 2003 rule R701

parenthesis = ( expr )

Definition at line 5155 of file Fortran2003.py.

Member Function Documentation

◆ match()

def fparser.two.Fortran2003.Parenthesis.match (   string)
static
Implements the matching of round brackets surrounding an expression
which is specified as one of the matches in R701.

:param str string: Fortran code to check for a match.

:returns: `None` if there is no match, or a 3-tuple containing \
    the left bracket, the matched expression and the right \
    bracket.
:rtype: NoneType or (str, subclass of \
    :py:class:`fparser.two.utils.Base`, str)

Definition at line 5167 of file Fortran2003.py.

5167  def match(string):
5168  """Implements the matching of round brackets surrounding an expression
5169  which is specified as one of the matches in R701.
5170 
5171  :param str string: Fortran code to check for a match.
5172 
5173  :returns: `None` if there is no match, or a 3-tuple containing \
5174  the left bracket, the matched expression and the right \
5175  bracket.
5176  :rtype: NoneType or (str, subclass of \
5177  :py:class:`fparser.two.utils.Base`, str)
5178 
5179  """
5180  return BracketBase.match("()", Expr, string)
5181 
5182 
Here is the caller graph for this function:

The documentation for this class was generated from the following file: