fparser Reference Guide  0.0.14
fparser.common.readfortran.CppDirective Class Reference
Inheritance diagram for fparser.common.readfortran.CppDirective:
Collaboration diagram for fparser.common.readfortran.CppDirective:

Public Member Functions

def __init__ (self, line, linenospan, reader)
 
- Public Member Functions inherited from fparser.common.readfortran.Line
def __init__ (self, line, linenospan, label, name, reader)
 
def has_map (self)
 
def apply_map (self, line)
 
def copy (self, line=None, apply_map=False)
 
def clone (self, line)
 
def __repr__ (self)
 
def __str__ (self)
 
def isempty (self, ignore_comments=False)
 
def get_line (self, apply_map=False)
 
def parse_line (self, cls, parent_cls)
 
def parse_block (self, reader, cls, parent_cls)
 

Additional Inherited Members

- Public Attributes inherited from fparser.common.readfortran.Line
 line
 
 span
 
 label
 
 name
 
 reader
 
 strline
 
 is_f2py_directive
 
 parse_cache
 
 strlinemap
 

Detailed Description

Holds a preprocessor directive source line.

:param str line: string containing the text of a single or \
                 multi-line preprocessor directive.
:param linenospan: a 2-tuple containing the start and end line \
                   numbers of the directive from the input source.
:type linenospan: (int, int)
:param reader: The reader object being used to read the input \
               source.
:type reader: :py:class:`fparser.common.readfortran.FortranReaderBase`

Definition at line 524 of file readfortran.py.


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