From a12739cd3f2ae5c78eca04cb3a1b30243db4f4fe Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 13 Jul 2020 16:15:01 -0400 Subject: more type information --- std/types.toc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 std/types.toc (limited to 'std') 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; +} -- cgit v1.2.3