Peano
Loading...
Searching...
No Matches
exahype2.api.dslhype2.AbstractSyntaxTree.For Class Reference
Inheritance diagram for exahype2.api.dslhype2.AbstractSyntaxTree.For:
Collaboration diagram for exahype2.api.dslhype2.AbstractSyntaxTree.For:

Public Member Functions

 __init__ (self, Element|Variable iteration_start, Element|Variable iteration_end)
 end_scope (self)
 add_statement (self, Statement statement)
Variable get_iteration_variable (self)
 print (self, printer, int indent_level=0)

Data Fields

 iteration_start = iteration_start
 iteration_end = iteration_end
list statements = []
 iteration_variable = Variable(Name(variable_name))

Static Public Attributes

 iteration_variable_names = list(ascii_lowercase)

Detailed Description

Definition at line 49 of file AbstractSyntaxTree.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.dslhype2.AbstractSyntaxTree.For.__init__ ( self,
Element | Variable iteration_start,
Element | Variable iteration_end )

Definition at line 52 of file AbstractSyntaxTree.py.

Member Function Documentation

◆ add_statement()

exahype2.api.dslhype2.AbstractSyntaxTree.For.add_statement ( self,
Statement statement )

Definition at line 69 of file AbstractSyntaxTree.py.

References statements.

◆ end_scope()

exahype2.api.dslhype2.AbstractSyntaxTree.For.end_scope ( self)

Definition at line 66 of file AbstractSyntaxTree.py.

References iteration_variable.

◆ get_iteration_variable()

Variable exahype2.api.dslhype2.AbstractSyntaxTree.For.get_iteration_variable ( self)

Definition at line 72 of file AbstractSyntaxTree.py.

References iteration_variable.

◆ print()

exahype2.api.dslhype2.AbstractSyntaxTree.For.print ( self,
printer,
int indent_level = 0 )

Reimplemented from exahype2.api.dslhype2.AbstractSyntaxTree.Statement.

Definition at line 75 of file AbstractSyntaxTree.py.

Field Documentation

◆ iteration_end

exahype2.api.dslhype2.AbstractSyntaxTree.For.iteration_end = iteration_end

Definition at line 57 of file AbstractSyntaxTree.py.

◆ iteration_start

exahype2.api.dslhype2.AbstractSyntaxTree.For.iteration_start = iteration_start

Definition at line 56 of file AbstractSyntaxTree.py.

◆ iteration_variable

exahype2.api.dslhype2.AbstractSyntaxTree.For.iteration_variable = Variable(Name(variable_name))

Definition at line 62 of file AbstractSyntaxTree.py.

Referenced by end_scope(), and get_iteration_variable().

◆ iteration_variable_names

exahype2.api.dslhype2.AbstractSyntaxTree.For.iteration_variable_names = list(ascii_lowercase)
static

Definition at line 50 of file AbstractSyntaxTree.py.

◆ statements

list exahype2.api.dslhype2.AbstractSyntaxTree.For.statements = []

Definition at line 58 of file AbstractSyntaxTree.py.

Referenced by add_statement().


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