add new module import syntax rule

This commit is contained in:
ValKmjolnir
2023-10-31 00:36:49 +08:00
parent c35ad2e6fa
commit 88e4b86ccb
10 changed files with 66 additions and 0 deletions

View File

@@ -7,6 +7,13 @@ bool ast_visitor::visit_expr(expr* node) {
return true;
}
bool ast_visitor::visit_use_stmt(use_stmt* node) {
for(auto i : node->get_path()) {
i->accept(this);
}
return true;
}
bool ast_visitor::visit_call(call* node) {
node->accept(this);
return true;