astx
¶
Modules:
-
arrow– -
binary_op– -
symbol_table– -
system–
Classes:
-
AddBinOp– -
ArrowInt32ArrayLength– -
AssignmentBinOp– -
BitAndBinOp– -
BitOrBinOp– -
BitXorBinOp– -
Cast– -
DivBinOp– -
EqBinOp– -
GeBinOp– -
GtBinOp– -
LeBinOp– -
LogicalAndBinOp– -
LogicalOrBinOp– -
LtBinOp– -
ModBinOp– -
MulBinOp– -
NeBinOp– -
PrintExpr– -
SubBinOp–
Functions:
AddBinOp
¶
Bases: BinaryOp
ArrowInt32ArrayLength
¶
ArrowInt32ArrayLength(values: list[AST])
Bases: DataType
Build an Arrow int32 array using the IRX runtime, then return its length. attributes: values: type: list[astx.AST] type_: type: astx.Int32
Methods:
Source code in src/irx/astx/arrow.py
25 26 27 28 29 30 31 32 33 34 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/arrow.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
AssignmentBinOp
¶
Bases: BinaryOp
BitAndBinOp
¶
Bases: BinaryOp
BitOrBinOp
¶
Bases: BinaryOp
BitXorBinOp
¶
Bases: BinaryOp
Cast
¶
Cast(value: AST, target_type: Any)
Bases: Expr
Methods:
Source code in src/irx/astx/system.py
68 69 70 71 72 73 74 75 76 77 78 79 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/system.py
81 82 83 84 85 86 87 88 89 90 91 92 | |
DivBinOp
¶
Bases: BinaryOp
EqBinOp
¶
Bases: BinaryOp
GeBinOp
¶
Bases: BinaryOp
GtBinOp
¶
Bases: BinaryOp
LeBinOp
¶
Bases: BinaryOp
LogicalAndBinOp
¶
Bases: BinaryOp
LogicalOrBinOp
¶
Bases: BinaryOp
LtBinOp
¶
Bases: BinaryOp
ModBinOp
¶
Bases: BinaryOp
MulBinOp
¶
Bases: BinaryOp
NeBinOp
¶
Bases: BinaryOp
PrintExpr
¶
PrintExpr(message: Expr)
Bases: Expr
It would be nice to support more arguments similar to the ones supported by Python (*args, sep=' ', end='', file=None, flush=False).
Methods:
Source code in src/irx/astx/system.py
29 30 31 32 33 34 35 36 37 38 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/system.py
40 41 42 43 44 45 46 47 48 49 50 51 | |
SubBinOp
¶
Bases: BinaryOp
binary_op_type_for_opcode
¶
Source code in src/irx/astx/binary_op.py
137 138 139 140 141 142 143 144 145 146 | |
specialize_binary_op
¶
specialize_binary_op(node: BinaryOp) -> BinaryOp
Source code in src/irx/astx/binary_op.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |