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,