Core: Add goto
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user