astx.types.operators
astx.types.operators
Source: packages/astx/src/astx/types/operators.py
title: ASTx Data Types module.Classes
DataTypeOps(DataType)
title: Overload some magic functions used for the main operations.UnaryOp(DataTypeOps)
title: AST class for the unary operator.
attributes:
kind:
type: ASTKind
op_code:
type: str
operand:
type: DataTypeMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure of the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructBinaryOp(DataTypeOps)
title: AST class for the binary operator.
attributes:
kind:
type: ASTKind
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: strMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure that represents the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructBoolBinaryOp(BinaryOp)
title: Base AST class for boolean binary operations.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure that represents the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructBoolUnaryOp(UnaryOp)
title: Base AST class for boolean unary operations.
attributes:
op_code:
type: str
operand:
type: DataType
kind:
type: ASTKindMethods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST structure that represents the object.
parameters:
simplified:
type: bool
returns:
type: ReprStructAndOp(BoolBinaryOp)
title: AST class for logical AND operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindOrOp(BoolBinaryOp)
title: AST class for logical OR operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindXorOp(BoolBinaryOp)
title: AST class for logical XOR operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindNandOp(BoolBinaryOp)
title: AST class for logical NAND operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindNorOp(BoolBinaryOp)
title: AST class for logical NOR operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindXnorOp(BoolBinaryOp)
title: AST class for logical XNOR operation.
attributes:
type_:
type: ExprType
lhs:
type: DataType
rhs:
type: DataType
op_code:
type: str
kind:
type: ASTKindNotOp(BoolUnaryOp)
title: AST class for logical NOT operation.
attributes:
op_code:
type: str
operand:
type: DataType
kind:
type: ASTKind