shithub: mc

ref: cf9651df0886dc8a4c0fbc6da8488606e1e85c31
dir: /parse/types.def/

View raw version
Ty(Tybad, NULL)
Ty(Tyvoid, "void")

/* start integer types.
 * Keep them ordered between start
 * and end for faster
 * comparisons.*/
Ty(Tybool, "bool")
Ty(Tychar, "char")

Ty(Tyint8, "int8")
Ty(Tyint16, "int16")
Ty(Tyint, "int")
Ty(Tyint32, "int32")
Ty(Tyint64, "int64")
Ty(Tylong, "long")

Ty(Tybyte, "byte")
Ty(Tyuint8, "uint8")
Ty(Tyuint16, "uint16")
Ty(Tyuint, "uint")
Ty(Tyuint32, "uint32")
Ty(Tyuint64, "uint64")
Ty(Tyulong, "ulong")
/*end integer types*/
Ty(Tyflt32, "flt32")
Ty(Tyflt64, "flt64")
/* end primitive types */
Ty(Tyvalist, NULL)

/* end atomic types */
Ty(Typtr, NULL)
Ty(Tyfunc, NULL)

/* these types live on the stack */
Ty(Tyslice, NULL)
Ty(Tyarray, NULL)
Ty(Tytuple, NULL)
Ty(Tystruct, NULL)
Ty(Tyunion, NULL)

/* these have no memory repr */
Ty(Tyvar, NULL)
Ty(Typaram, NULL)
Ty(Tyunres, NULL) /* unresolved */
Ty(Tyname, NULL)
Ty(Tygeneric, NULL)