pystencils.backend.ast.expressions.PsConstantExpr

pystencils.backend.ast.expressions.PsConstantExpr#

class pystencils.backend.ast.expressions.PsConstantExpr(constant)#
Parameters:

constant (PsConstant)

_clone_expr()#

Implementation of expression cloning.

Return type:

PsConstantExpr

structurally_equal(other)#

Check two ASTs for structural equality.

By default this method checks the node’s type and children. If an AST node has additional internal state, it MUST override this method.

Return type:

bool

Parameters:

other (PsAstNode)