|
def | tostr (self) |
|
def | init (self, string) |
|
def | tostr (self) |
|
def | torepr (self) |
|
def | __init__ (self, string, parent_cls=None) |
|
def | __new__ (cls, string, parent_cls=None) |
|
def | get_root (self) |
|
def | children (self) |
|
def | init (self, items) |
|
def | torepr (self) |
|
def | __str__ (self) |
|
def | __repr__ (self) |
|
def | tofortran (self, tab="", isfix=None) |
|
def | restore_reader (self, reader) |
|
def | __lt__ (self, other) |
|
def | __le__ (self, other) |
|
def | __eq__ (self, other) |
|
def | __ge__ (self, other) |
|
def | __gt__ (self, other) |
|
def | __ne__ (self, other) |
|
|
def | match (string) |
|
def | match (pattern, string) |
|
|
| subclass_names |
|
| subclasses |
|
Implements the matching of an identifier list in a macro definition.
identifier-list is (identifier [, identifier-list or ...])
or (...)
Definition at line 514 of file C99Preprocessor.py.
◆ match()
def fparser.two.C99Preprocessor.Cpp_Macro_Identifier_List.match |
( |
|
string | ) |
|
|
static |
Implements the matching of a macro identifier list as part of
a macro definition. It must consist of one or more macro
identifier separated by comma, or "..." for a variadic argument
list, and must be surrouned by parentheses.
For simplicity, the matched list is kept as a single string and not
matched as
:py:class:`fparser.two.C99Preprocessor.Cpp_Macro_Identifier`.
:param str string: the string to match with the pattern rule.
:return: a tuple of size 1 containing a string with the \
matched identifier list if there is a match, or None if \
there is not.
:rtype: (`str`,) or `NoneType`
Definition at line 531 of file C99Preprocessor.py.
532 """Implements the matching of a macro identifier list as part of 533 a macro definition. It must consist of one or more macro 534 identifier separated by comma, or "..." for a variadic argument 535 list, and must be surrouned by parentheses. 537 For simplicity, the matched list is kept as a single string and not 539 :py:class:`fparser.two.C99Preprocessor.Cpp_Macro_Identifier`. 541 :param str string: the string to match with the pattern rule. 543 :return: a tuple of size 1 containing a string with the \ 544 matched identifier list if there is a match, or None if \ 546 :rtype: (`str`,) or `NoneType` 551 return StringBase.match(Cpp_Macro_Identifier_List._pattern, string)
◆ tostr()
def fparser.two.C99Preprocessor.Cpp_Macro_Identifier_List.tostr |
( |
|
self | ) |
|
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/C99Preprocessor.py