static ast_result_t syntax_use(ast_t* ast) { ast_t* id = ast_child(ast); if(ast_id(id) != TK_NONE && !check_id_package(id)) return AST_ERROR; return AST_OK; }
static ast_result_t syntax_use(pass_opt_t* opt, ast_t* ast) { assert(ast != NULL); AST_GET_CHILDREN(ast, id, url, guard); if(ast_id(id) != TK_NONE && !check_id_package(opt, id)) return AST_ERROR; if(ast_id(guard) != TK_NONE && !syntax_ifdef_cond(opt, guard, "use guard")) return AST_ERROR; return AST_OK; }