summaryrefslogtreecommitdiff
path: root/parse/types.def
blob: a079fbdf87320df6d110354a98c448934afa5dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)