Core: Add goto

This commit is contained in:
Krzosa Karol
2023-04-22 13:14:08 +02:00
parent eff6b10cf4
commit 654d6f17e4
10 changed files with 42 additions and 9 deletions

View File

@@ -335,6 +335,7 @@ enum Ast_Kind : uint32_t {
AST_VARGS_LAMBDA_PARAM,
AST_LABEL,
AST_GOTO,
AST_SWITCH,
AST_SWITCH_CASE,
AST_VAR_UNPACK,
@@ -530,6 +531,10 @@ struct Ast_If : Ast {
#define Ast_Pass Ast
#define Ast_Break Ast
struct Ast_Goto : Ast {
Intern_String label;
};
struct Ast_For : Ast {
Ast_Expr *init;
Ast_Expr *cond;