mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 00:17:54 +00:00
Labels for block and if statements (break only)
This commit is contained in:
@@ -283,10 +283,12 @@ AST_KIND(_StmtBegin, "", bool) \
|
||||
AST_KIND(_ComplexStmtBegin, "", bool) \
|
||||
AST_KIND(BlockStmt, "block statement", struct { \
|
||||
Array<Ast *> stmts; \
|
||||
Ast *label; \
|
||||
Token open, close; \
|
||||
}) \
|
||||
AST_KIND(IfStmt, "if statement", struct { \
|
||||
Token token; \
|
||||
Ast *label; \
|
||||
Ast * init; \
|
||||
Ast * cond; \
|
||||
Ast * body; \
|
||||
|
||||
Reference in New Issue
Block a user