diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/types.toc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/std/types.toc b/std/types.toc new file mode 100644 index 0000000..973b1d8 --- /dev/null +++ b/std/types.toc @@ -0,0 +1,31 @@ +// @TODO: enum +TypeKind ::= nms { + UNKNOWN ::= 0; + BUILTIN ::= 1; + FN ::= 2; + TUPLE ::= 3; + ARR ::= 4; + PTR ::= 5; + SLICE ::= 6; + EXPR ::= 7; // in theory, you should never get this kind of type (it's only used internally by the compiler) + STRUCT ::= 8; +} + +BuiltinType ::= nms { + I8 ::= 0; + U8 ::= 1; + I16 ::= 2; + U16 ::= 3; + I32 ::= 4; + U32 ::= 5; + I64 ::= 6; + U64 ::= 7; + F32 ::= 8; + F64 ::= 9; + CHAR ::= 10; + BOOL ::= 11; + TYPE ::= 12; + VARARGS ::= 13; + NMS ::= 14; + VOID ::= 15; +} |