Part of Fortran 2003 rule R701
parenthesis = ( expr )
Definition at line 5155 of file Fortran2003.py.
◆ 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.
5168 """Implements the matching of round brackets surrounding an expression 5169 which is specified as one of the matches in R701. 5171 :param str string: Fortran code to check for a match. 5173 :returns: `None` if there is no match, or a 3-tuple containing \ 5174 the left bracket, the matched expression and the right \ 5176 :rtype: NoneType or (str, subclass of \ 5177 :py:class:`fparser.two.utils.Base`, str) 5180 return BracketBase.match(
"()", Expr, string)
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