From cd2a86435e5e413630e0ab0caa48d900e49ea275 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 16:20:14 +0200 Subject: feat: tuples baby --- eval.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eval.h') diff --git a/eval.h b/eval.h index eb3fe1d..c2365cc 100644 --- a/eval.h +++ b/eval.h @@ -7,6 +7,9 @@ #define VARIABLES_MAX 64 +// the longest thing a single type can say when emitted +#define TEXT_LENGTH_MAX 255 + enum TypeKind { KIND_VOID, @@ -16,13 +19,16 @@ enum TypeKind KIND_ARRAY, KIND_CHAR, KIND_CHAR_CONSTANT, + KIND_TUPLE, KIND_VALUE }; +// a tuple keeps what it will say, already said, so nothing inside it can go out of scope struct Type { enum TypeKind kind; int64_t number; + char text[TEXT_LENGTH_MAX + 1]; }; struct Variable -- cgit v1.3