From 3665fa8d9d4d2982ecc55cf17f4a126ee3c3e1a9 Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Thu, 24 Mar 2022 16:08:10 +0300 Subject: [PATCH] 4 --- context.h | 1 + tokens.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/context.h b/context.h index b7ccf46..dd97c05 100644 --- a/context.h +++ b/context.h @@ -11,4 +11,5 @@ struct ContextStruct{ Autoarr(Context) children; Autoarr(Command) commandChain; Autoarr(Constant) constantStack; + bool isPartial; // if true, not-defined members won't throw NotDefinedError before linkage } diff --git a/tokens.h b/tokens.h index b40d1a6..047b0e4 100644 --- a/tokens.h +++ b/tokens.h @@ -41,10 +41,20 @@ typedef enum TokenId{ tok_import, tok_alias, // access modifiers + tok_static, tok_const, + tok_readonly, tok_protected, + tok_internal, tok_public, tok_virtual, + tok_override, + tok_partial, + // allocation keywords + tok_halloc, // allocates struct in heap + tok_malloc, // allocates bytes in stack + tok_sizeof, // size of variable value + tok_typeof, // type of variable // user-defined tok_label, tok_number,