24 lines
974 B
Plaintext
24 lines
974 B
Plaintext
# Stub type declarations for peon's intrinsic types
|
|
|
|
|
|
type int64* = object {#pragma[magic: "int64"]}
|
|
type int32* = object {#pragma[magic: "int32"]}
|
|
type int16* = object {#pragma[magic: "int16"]}
|
|
type int8* = object {#pragma[magic: "int8"]}
|
|
type uint64* = object {#pragma[magic: "uint64"]}
|
|
type uint32* = object {#pragma[magic: "uint32"]}
|
|
type uint16* = object {#pragma[magic: "uint16"]}
|
|
type uint8* = object {#pragma[magic: "uint8"]}
|
|
type float64* = object {#pragma[magic: "float64"]}
|
|
type float32* = object {#pragma[magic: "float32"]}
|
|
type bool* = object {#pragma[magic: "bool"]}
|
|
type string* = object {#pragma[magic: "string"]}
|
|
type any* = object {#pragma[magic: "any"]}
|
|
|
|
# Some convenience aliases
|
|
type int* = int64;
|
|
type float* = float64;
|
|
type SignedInteger* = int64 | int32 | int16 | int8;
|
|
type UnsignedInteger* = uint64 | uint32 | uint16 | uint8;
|
|
type Integer* = SignedInteger | UnsignedInteger;
|
|
type Number* = Integer | float64 | float32; |