Core: Add goto
This commit is contained in:
@@ -621,6 +621,11 @@ gen_ast(Ast *ast) {
|
||||
BREAK();
|
||||
}
|
||||
|
||||
case AST_GOTO: {
|
||||
auto n = (Ast_Goto *)ast;
|
||||
gen("goto %Q;", n->label);
|
||||
} break;
|
||||
|
||||
case AST_LABEL: {
|
||||
auto n = (Ast_Label *)ast;
|
||||
if (n->enable_goto == false) gen("/* %Q */", n->name);
|
||||
|
||||
Reference in New Issue
Block a user