datatypes
¶
ASTx Data Types module.
AnyExpr
¶
Bases: DataTypeOps
Generic data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
BinaryOp
¶
Bases: DataTypeOps
AST class for the binary operator.
Source code in src/astx/datatypes.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure that represents the object.
Source code in src/astx/datatypes.py
158 159 160 161 162 163 164 165 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Boolean
¶
Bases: DataType
Boolean data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
DataTypeOps
¶
Bases: DataType
Overload some magic functions used for the main operations.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Float16
¶
Bases: Floating
Float16 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
Float32
¶
Bases: Floating
Float32 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
Float64
¶
Bases: Floating
Float64 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
Floating
¶
Bases: Number
AST for the literal float number.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
Int128
¶
Bases: SignedInteger
Int128 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Int16
¶
Bases: SignedInteger
Int16 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Int32
¶
Bases: SignedInteger
Int32 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Int64
¶
Bases: SignedInteger
Int64 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Int8
¶
Bases: SignedInteger
Int8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Integer
¶
Bases: Number
Integer number data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
Literal
¶
Literal(*args, **kwargs)
Bases: DataTypeOps
Literal Data type.
Source code in src/astx/datatypes.py
299 300 301 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralBoolean
¶
LiteralBoolean(value: bool, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralBoolean data type class.
Source code in src/astx/datatypes.py
481 482 483 484 485 486 487 488 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralFloat16
¶
LiteralFloat16(value: float, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralFloat16 data type class.
Source code in src/astx/datatypes.py
497 498 499 500 501 502 503 504 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralFloat32
¶
LiteralFloat32(value: float, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralFloat32 data type class.
Source code in src/astx/datatypes.py
513 514 515 516 517 518 519 520 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralFloat64
¶
LiteralFloat64(value: float, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralFloat64 data type class.
Source code in src/astx/datatypes.py
529 530 531 532 533 534 535 536 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralInt128
¶
LiteralInt128(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralInt128 data type class.
Source code in src/astx/datatypes.py
385 386 387 388 389 390 391 392 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralInt16
¶
LiteralInt16(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralInt16 data type class.
Source code in src/astx/datatypes.py
337 338 339 340 341 342 343 344 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralInt32
¶
LiteralInt32(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralInt32 data type class.
Source code in src/astx/datatypes.py
353 354 355 356 357 358 359 360 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralInt64
¶
LiteralInt64(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralInt64 data type class.
Source code in src/astx/datatypes.py
369 370 371 372 373 374 375 376 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralInt8
¶
LiteralInt8(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralInt8 data type class.
Source code in src/astx/datatypes.py
321 322 323 324 325 326 327 328 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralUInt128
¶
LiteralUInt128(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralUInt128 data type class.
Source code in src/astx/datatypes.py
465 466 467 468 469 470 471 472 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralUInt16
¶
LiteralUInt16(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralUInt16 data type class.
Source code in src/astx/datatypes.py
417 418 419 420 421 422 423 424 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralUInt32
¶
LiteralUInt32(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralUInt32 data type class.
Source code in src/astx/datatypes.py
433 434 435 436 437 438 439 440 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralUInt64
¶
LiteralUInt64(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralUInt64 data type class.
Source code in src/astx/datatypes.py
449 450 451 452 453 454 455 456 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
LiteralUInt8
¶
LiteralUInt8(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralUInt8 data type class.
Source code in src/astx/datatypes.py
401 402 403 404 405 406 407 408 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/datatypes.py
308 309 310 311 312 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
Number
¶
Bases: DataTypeOps
Number data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
SignedInteger
¶
Bases: Integer
Signed integer number data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
UInt128
¶
Bases: UnsignedInteger
UInt8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UInt16
¶
Bases: UnsignedInteger
UInt8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UInt32
¶
Bases: UnsignedInteger
UInt8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UInt64
¶
Bases: UnsignedInteger
UInt8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UInt8
¶
Bases: UnsignedInteger
UInt8 data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
317 318 319 320 321 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UnaryOp
¶
Bases: DataTypeOps
AST class for the unary operator.
Source code in src/astx/datatypes.py
93 94 95 96 97 98 99 100 101 102 103 104 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST structure of the object.
Source code in src/astx/datatypes.py
110 111 112 113 114 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
217 218 219 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
211 212 213 214 215 |
|
UnsignedInteger
¶
Bases: Integer
Unsigned integer number data type expression.
Source code in src/astx/base.py
301 302 303 304 305 306 307 308 309 310 311 |
|