Reference Guide  2.5.0
psyclone.expression.Slicing Class Reference
Inheritance diagram for psyclone.expression.Slicing:
Collaboration diagram for psyclone.expression.Slicing:

Public Member Functions

def __init__ (self, toks)
 
def __repr__ (self)
 
def __str__ (self)
 

Public Attributes

 start
 
 stop
 
 stride
 
- Public Attributes inherited from psyclone.expression.ExpressionNode
 names
 
 toks
 

Detailed Description

Expression node for Fortran colon array slicings.

Definition at line 83 of file expression.py.

Constructor & Destructor Documentation

◆ __init__()

def psyclone.expression.Slicing.__init__ (   self,
  toks 
)
 The recursive collection of names enables the dependencies of
expressions to be analysed. 

Reimplemented from psyclone.expression.ExpressionNode.

Definition at line 85 of file expression.py.

85  def __init__(self, toks):
86  ExpressionNode.__init__(self, toks)
87 
88  self.start = ""
89  self.stop = ""
90  self.stride = ""
91 
92  tokiter = iter(toks)
93  tok = next(tokiter)
94  if tok != ":":
95  self.start = tok
96  tok = next(tokiter)
97 
98  try:
99  tok = next(tokiter)
100  if tok != ":":
101  self.stop = tok
102  tok = next(tokiter)
103 
104  tok = next(tokiter)
105  self.stride = tok
106  except StopIteration:
107  pass
108 

References psyclone.expression.Slicing.start, psyclone.psyir.nodes.ranges.Range.start(), psyclone.expression.Slicing.stop, psyclone.psyir.nodes.ranges.Range.stop(), and psyclone.expression.Slicing.stride.

Here is the call graph for this function:

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