4
This commit is contained in:
parent
042e3e6670
commit
3665fa8d9d
@ -11,4 +11,5 @@ struct ContextStruct{
|
|||||||
Autoarr(Context) children;
|
Autoarr(Context) children;
|
||||||
Autoarr(Command) commandChain;
|
Autoarr(Command) commandChain;
|
||||||
Autoarr(Constant) constantStack;
|
Autoarr(Constant) constantStack;
|
||||||
|
bool isPartial; // if true, not-defined members won't throw NotDefinedError before linkage
|
||||||
}
|
}
|
||||||
|
|||||||
10
tokens.h
10
tokens.h
@ -41,10 +41,20 @@ typedef enum TokenId{
|
|||||||
tok_import,
|
tok_import,
|
||||||
tok_alias,
|
tok_alias,
|
||||||
// access modifiers
|
// access modifiers
|
||||||
|
tok_static,
|
||||||
tok_const,
|
tok_const,
|
||||||
|
tok_readonly,
|
||||||
tok_protected,
|
tok_protected,
|
||||||
|
tok_internal,
|
||||||
tok_public,
|
tok_public,
|
||||||
tok_virtual,
|
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
|
// user-defined
|
||||||
tok_label,
|
tok_label,
|
||||||
tok_number,
|
tok_number,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user