diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-13 16:15:01 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-13 16:15:01 -0400 |
commit | a12739cd3f2ae5c78eca04cb3a1b30243db4f4fe (patch) | |
tree | 2c7660893237e942db84e5cbd04a4c7d762d8fdd /std | |
parent | 0c5d34b277e4e99b4cb4396d547620aaf6d044d7 (diff) |
more type information
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; +} |