diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-04 23:14:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-04 23:14:55 +0100 |
| commit | cdbf831a7a6d9bc36e3cf76d525c44af88dc0a53 (patch) | |
| tree | ea6d0be0d032a77f6d7c0303be4dffd31c837412 /src/parser.hpp | |
| parent | 0718f14774c152b84edb747c03ca53b9400407b9 (diff) | |
Replace `context <- c {}` with `context = c;`. context assignments are scope based
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 1020f784f..a9adee8d3 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -11,6 +11,7 @@ enum AddressingMode { Addressing_NoValue, // no value (void in C) Addressing_Value, // computed value (rvalue) Addressing_Immutable, // immutable computed value (const rvalue) + Addressing_Context, // context value Addressing_Variable, // addressable variable (lvalue) Addressing_Constant, // constant Addressing_Type, // type @@ -191,7 +192,6 @@ enum StmtAllowFlag { StmtAllowFlag_None = 0, StmtAllowFlag_In = 1<<0, StmtAllowFlag_Label = 1<<1, - StmtAllowFlag_Context = 1<<2, }; #define AST_KINDS \ @@ -343,11 +343,6 @@ AST_KIND(_ComplexStmtBegin, "", bool) \ Token token; \ Array<Ast *> list; \ }) \ - AST_KIND(PushContext, "context <- statement", struct { \ - Token token; \ - Ast *expr; \ - Ast *body; \ - }) \ AST_KIND(_ComplexStmtEnd, "", bool) \ AST_KIND(_StmtEnd, "", bool) \ AST_KIND(_DeclBegin, "", bool) \ |