types
¶
Collection of ASTx nodes used for types.
Modules:
-
base
–ASTx Data Types module.
-
boolean
–ASTx Data Types module.
-
casting
–AST types module.
-
numeric
–ASTx Data Types module.
-
operators
–ASTx Data Types module.
-
string
–ASTx Data Types module.
-
temporal
–ASTx Data Types module.
-
ttypes
–Constant objects.
Classes:
-
AndOp
–AST class for logical AND operation.
-
AnyType
–Generic data type expression.
-
BinaryOp
–AST class for the binary operator.
-
BoolBinaryOp
–Base AST class for boolean binary operations.
-
BoolUnaryOp
–Base AST class for boolean unary operations.
-
Boolean
–Boolean data type expression.
-
Complex
–Base class for complex numbers.
-
Complex32
–Complex32 data type class.
-
Complex64
–Complex64 data type class.
-
DataTypeOps
–Overload some magic functions used for the main operations.
-
Date
–Date data type expression.
-
DateTime
–DateTime data type expression.
-
Float16
–Float16 data type expression.
-
Float32
–Float32 data type expression.
-
Float64
–Float64 data type expression.
-
Floating
–AST for the literal float number.
-
Int16
–Int16 data type expression.
-
Int32
–Int32 data type expression.
-
Int64
–Int64 data type expression.
-
Int8
–Int8 data type expression.
-
Integer
–Integer number data type expression.
-
NandOp
–AST class for logical NAND operation.
-
NoneType
–NoneType data type expression.
-
NorOp
–AST class for logical NOR operation.
-
NotOp
–AST class for logical NOT operation.
-
Number
–Number data type expression.
-
OrOp
–AST class for logical OR operation.
-
SignedInteger
–Signed integer number data type expression.
-
String
–Base class for strings.
-
Time
–Time data type expression.
-
Timestamp
–Timestamp data type expression.
-
TypeCastExpr
–AST class for type casting expressions.
-
UInt128
–UInt128 data type expression.
-
UInt16
–UInt16 data type expression.
-
UInt32
–UInt32 data type expression.
-
UInt64
–UInt64 data type expression.
-
UInt8
–UInt8 data type expression.
-
UTF8Char
–Class for UTF-8 encoded characters.
-
UTF8String
–Class for UTF-8 encoded strings.
-
UnaryOp
–AST class for the unary operator.
-
UnsignedInteger
–Unsigned integer number data type expression.
-
XnorOp
–AST class for logical XNOR operation.
-
XorOp
–AST class for logical XOR operation.
AndOp
¶
AndOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical AND operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
AnyType
¶
Bases: DataType
Generic data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
BinaryOp
¶
BinaryOp(op_code: str, lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: DataTypeOps
AST class for the binary operator.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
183 184 185 186 187 188 189 190 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
BoolBinaryOp
¶
BoolBinaryOp(op_code: str, lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BinaryOp
Base AST class for boolean binary operations.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
BoolUnaryOp
¶
BoolUnaryOp(op_code: str, operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: UnaryOp
Base AST class for boolean unary operations.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
233 234 235 236 237 238 239 240 241 242 243 244 245 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
251 252 253 254 255 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Boolean
¶
Bases: AnyType
Boolean data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Complex
¶
Bases: Number
Base class for complex numbers.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Complex32
¶
Bases: Complex
Complex32 data type class.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Complex64
¶
Bases: Complex
Complex64 data type class.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
DataTypeOps
¶
Bases: DataType
Overload some magic functions used for the main operations.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Date
¶
Bases: Temporal
Date data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
DateTime
¶
Bases: Temporal
DateTime data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Float16
¶
Bases: Floating
Float16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Float32
¶
Bases: Floating
Float32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Float64
¶
Bases: Floating
Float64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Floating
¶
Bases: Number
AST for the literal float number.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Int16
¶
Bases: SignedInteger
Int16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Int32
¶
Bases: SignedInteger
Int32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Int64
¶
Bases: SignedInteger
Int64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Int8
¶
Bases: SignedInteger
Int8 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Integer
¶
Bases: AnyType
Integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
NandOp
¶
NandOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical NAND operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
NoneType
¶
Bases: DataType
NoneType data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
NorOp
¶
NorOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical NOR operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
NotOp
¶
NotOp(operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolUnaryOp
AST class for logical NOT operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
416 417 418 419 420 421 422 423 424 425 426 427 428 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
251 252 253 254 255 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Number
¶
Bases: AnyType
Number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
OrOp
¶
OrOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical OR operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
SignedInteger
¶
Bases: Integer
Signed integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
String
¶
Bases: AnyType
Base class for strings.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Time
¶
Bases: Temporal
Time data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
Timestamp
¶
Bases: Temporal
Timestamp data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
TypeCastExpr
¶
TypeCastExpr(expr: Expr, target_type: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: Expr
AST class for type casting expressions.
Methods:
-
get_struct
–Return the AST structure of the TypeCast expression.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/casting.py
29 30 31 32 33 34 35 36 37 38 39 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure of the TypeCast expression.
Source code in src/astx/types/casting.py
45 46 47 48 49 50 51 52 53 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UInt128
¶
Bases: UnsignedInteger
UInt128 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UInt16
¶
Bases: UnsignedInteger
UInt16 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UInt32
¶
Bases: UnsignedInteger
UInt32 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UInt64
¶
Bases: UnsignedInteger
UInt64 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UInt8
¶
Bases: UnsignedInteger
UInt8 data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UTF8Char
¶
Bases: AnyType
Class for UTF-8 encoded characters.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UTF8String
¶
Bases: AnyType
Class for UTF-8 encoded strings.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UnaryOp
¶
UnaryOp(op_code: str, operand: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: DataTypeOps
AST class for the unary operator.
Methods:
-
get_struct
–Return the AST structure of the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
115 116 117 118 119 120 121 122 123 124 125 126 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure of the object.
Source code in src/astx/types/operators.py
132 133 134 135 136 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
UnsignedInteger
¶
Bases: Integer
Unsigned integer number data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/base.py
441 442 443 444 445 446 447 448 449 450 451 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
457 458 459 460 461 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
XnorOp
¶
XnorOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical XNOR operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|
XorOp
¶
XorOp(lhs: DataType, rhs: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Bases: BoolBinaryOp
AST class for logical XOR operation.
Methods:
-
get_struct
–Return the AST structure that represents the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/types/operators.py
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/types/operators.py
218 219 220 221 222 223 224 225 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
294 295 296 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
288 289 290 291 292 |
|