astx.literals.numeric
astx.literals.numeric
Source: packages/astx/src/astx/literals/numeric.py
title: ASTx Data Types module.Classes
LiteralInt8(Literal)
title: LiteralInt8 data type class.
attributes:
type_:
type: Int8
loc:
type: SourceLocation
value:
type: intLiteralInt16(Literal)
title: LiteralInt16 data type class.
attributes:
type_:
type: Int16
loc:
type: SourceLocation
value:
type: intLiteralInt32(Literal)
title: LiteralInt32 data type class.
attributes:
type_:
type: Int32
loc:
type: SourceLocation
value:
type: intLiteralInt64(Literal)
title: LiteralInt64 data type class.
attributes:
type_:
type: Int64
loc:
type: SourceLocation
value:
type: intLiteralInt128(Literal)
title: LiteralInt128 data type class.
attributes:
type_:
type: Int128
loc:
type: SourceLocation
value:
type: intLiteralUInt8(Literal)
title: LiteralUInt8 data type class.
attributes:
type_:
type: UInt8
loc:
type: SourceLocation
value:
type: intLiteralUInt16(Literal)
title: LiteralUInt16 data type class.
attributes:
type_:
type: UInt16
loc:
type: SourceLocation
value:
type: intLiteralUInt32(Literal)
title: LiteralUInt32 data type class.
attributes:
type_:
type: UInt32
loc:
type: SourceLocation
value:
type: intLiteralUInt64(Literal)
title: LiteralUInt64 data type class.
attributes:
type_:
type: UInt64
loc:
type: SourceLocation
value:
type: intLiteralUInt128(Literal)
title: LiteralUInt128 data type class.
attributes:
type_:
type: UInt128
loc:
type: SourceLocation
value:
type: intLiteralFloat16(Literal)
title: LiteralFloat16 data type class.
attributes:
type_:
type: Float16
loc:
type: SourceLocation
value:
type: floatLiteralFloat32(Literal)
title: LiteralFloat32 data type class.
attributes:
type_:
type: Float32
loc:
type: SourceLocation
value:
type: floatLiteralFloat64(Literal)
title: LiteralFloat64 data type class.
attributes:
type_:
type: Float64
loc:
type: SourceLocation
value:
type: floatLiteralComplex(Literal)
title: Base class for literal complex numbers.
attributes:
type_:
type: Complex
value:
type: tuple[float, float]Methods
get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the AST representation for the complex literal.
parameters:
simplified:
type: bool
returns:
type: ReprStructLiteralComplex32(LiteralComplex)
title: LiteralComplex32 data type class.
attributes:
value:
type: tuple[float, float]
type_:
type: Complex32LiteralComplex64(LiteralComplex)
title: LiteralComplex64 data type class.
attributes:
value:
type: tuple[float, float]
type_:
type: Complex64