Core: #compiler_breakpoint

This commit is contained in:
Krzosa Karol
2023-04-21 15:34:59 +02:00
parent 07dcb418dd
commit 108ec6121e
10 changed files with 27 additions and 15 deletions

View File

@@ -160,7 +160,7 @@ ast_break(Token *pos) {
CORE_Static Ast_Break *
ast_compiler_breakpoint(Token *pos) {
AST_NEW(Break, COMPILER_BREAKPOINT, pos, AST_STMT);
AST_NEW(Break, COMPILER_BREAKPOINT_STMT, pos, AST_STMT);
return result;
}
@@ -566,7 +566,7 @@ void next(Ast_Iter *iter) {
case AST_BREAK:
case AST_PASS:
case AST_CONTINUE:
case AST_COMPILER_BREAKPOINT: {
case AST_COMPILER_BREAKPOINT_STMT: {
Ast *node = (Ast *)ast;
} break;