diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-17 11:11:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-17 11:11:56 +0000 |
| commit | a7ed7ccd0c392cfbb6cb2e486fc7c75b16791902 (patch) | |
| tree | 8a325415e65ad09cf81547b957753b99d867aaf9 /src/parser.hpp | |
| parent | bfe1f234ec763fc79359f7614ae4cccab88780e7 (diff) | |
| parent | 58deab46a3e2423789f2af5e6ec7a4ef69ce810e (diff) | |
Merge pull request #6259 from odin-lang/bill/range-init
`for init; x in y {}` style loops (proof of concept)
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 1026433d0..d3527285d 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -587,6 +587,7 @@ AST_KIND(_ComplexStmtBegin, "", bool) \ Scope *scope; \ Token token; \ Ast *label; \ + Ast *init; \ Slice<Ast *> vals; \ Token in_token; \ Ast *expr; \ @@ -596,6 +597,7 @@ AST_KIND(_ComplexStmtBegin, "", bool) \ AST_KIND(UnrollRangeStmt, "#unroll range statement", struct { \ Scope *scope; \ Token unroll_token; \ + Ast *init; \ Slice<Ast *> args; \ Token for_token; \ Ast *val0; \ |