diff options
| author | gingerBill <bill@gingerbill.org> | 2019-08-26 13:54:35 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-08-26 13:54:35 +0100 |
| commit | 01c10aa9447d135bdda5dc25583a5e1f94cbda6d (patch) | |
| tree | 10f37633b1cf71e8dcb29afb3418220e71daf733 /src/parser.hpp | |
| parent | 4908d1ebdd00a8822d9ef59245f2456db4b6dbfc (diff) | |
`inline for` loops (only for 'in' based for loops)
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 3489f1a9b..32398592e 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -326,6 +326,15 @@ AST_KIND(_ComplexStmtBegin, "", bool) \ Ast *expr; \ Ast *body; \ }) \ + AST_KIND(InlineRangeStmt, "inline range statement", struct { \ + Token inline_token; \ + Token for_token; \ + Ast *val0; \ + Ast *val1; \ + Token in_token; \ + Ast *expr; \ + Ast *body; \ + }) \ AST_KIND(CaseClause, "case clause", struct { \ Token token; \ Array<Ast *> list; \ |