forked from xxq250/Nasal-Interpreter
✨ add new module import syntax rule
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user