Abstract Syntax Tree#
API Documentation#
Inheritance Diagram#

Base Classes#
Base class for all nodes in the pystencils AST. |
|
Mix-in for AST leaves. |
Structural Nodes#
Conditional branch |
|
Mix-in marking AST leaves that can be treated as empty by the code generator, such as comments and preprocessor directives. |
|
A C/C++ preprocessor pragma. |
|
Expressions#
Base class for all expressions. |
|
Mix-in for all expressions that may occur as an lvalue; i.e. expressions that represent a memory location. |
|
A single symbol as an expression. |
|
Access into a |
|
N-dimensional subscript into an array. |
|
Pointer-based memory access with type-dependent offset. |
|
Ternary operator. |
|
Trait for operations valid only on numerical types |
|
Trait for operations valid only on integer types |
|
Trait for boolean operations |
|
Take the address of a memory location. |
|
C-like integer division (round to zero). |
|
C-style integer division remainder |
|
Base class for binary relational operators |
|
N-dimensional array initialization matrix. |
SIMD Nodes#
Mix-in for vector operations |
|
Broadcast a scalar value to N vector lanes. |
|
Pointer-based vectorized memory access. |
Utility#
Evaluate a pystencils backend expression tree with values assigned to symbols according to the given valuation. |
|
Pre-Order depth-first traversal of an abstract syntax tree. |
|
Post-Order depth-first traversal of an abstract syntax tree. |
|
Wrapper around AST nodes that computes a hash from the AST's textual representation and maps the |
|
Return the memory object accessed by the given expression, together with its constness |