This commit is contained in:
Timerix22 2022-03-24 16:08:10 +03:00
parent 042e3e6670
commit 3665fa8d9d
2 changed files with 11 additions and 0 deletions

View File

@ -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
}

View File

@ -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,