system
¶
Classes:
-
AssertStmt– -
Cast– -
PrintExpr–
AssertStmt
¶
AssertStmt(
condition: Expr,
message: Expr | None = None,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: ASTNodes[AST] | None = None,
)
Bases: StatementType
Represent one fatal assertion statement with an optional failure message. attributes: condition: type: astx.Expr message: type: astx.Expr | None loc: type: astx.SourceLocation
Methods:
Source code in src/irx/astx/system.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/system.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
Cast
¶
Cast(value: DataType, target_type: Any)
Bases: DataType
Methods:
Source code in src/irx/astx/system.py
145 146 147 148 149 150 151 152 153 154 155 156 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/system.py
158 159 160 161 162 163 164 165 166 167 168 169 | |
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
105 106 107 108 109 110 111 112 113 114 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/system.py
116 117 118 119 120 121 122 123 124 125 126 127 | |