Add core printer file
This commit is contained in:
@@ -204,6 +204,8 @@ void next(Ast_Iter *iter) {
|
|||||||
For(node->ret) iter->stack.add(it);
|
For(node->ret) iter->stack.add(it);
|
||||||
For(node->args) iter->stack.add(it);
|
For(node->args) iter->stack.add(it);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
default: assert(!"Invalid default case");
|
||||||
}
|
}
|
||||||
end_of_switch:
|
end_of_switch:
|
||||||
|
|
||||||
@@ -479,6 +481,8 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope) {
|
|||||||
dst->scope = (Ast_Scope *)ast_copy(src->scope, parent_scope);
|
dst->scope = (Ast_Scope *)ast_copy(src->scope, parent_scope);
|
||||||
return dst;
|
return dst;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
default: assert(!"Invalid default case");
|
||||||
}
|
}
|
||||||
invalid_return;
|
invalid_return;
|
||||||
}
|
}
|
||||||
0
core_printer.cpp
Normal file
0
core_printer.cpp
Normal file
Reference in New Issue
Block a user