From: fennecdjay Date: Thu, 23 May 2019 08:09:33 +0000 (+0200) Subject: :shirt: Clean traverse X-Git-Tag: nightly~2450 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=16e313088238701973b35981f3b702b7b144d9c9;p=gwion.git :shirt: Clean traverse --- diff --git a/src/parse/traverse.c b/src/parse/traverse.c index 55c3ad3b..637d93e3 100644 --- a/src/parse/traverse.c +++ b/src/parse/traverse.c @@ -4,37 +4,6 @@ #include "env.h" #include "traverse.h" -ANN m_bool scan0_ast(const Env env, Ast ast); -ANN m_bool scan1_ast(const Env env, Ast ast); -ANN m_bool scan2_ast(const Env env, Ast ast); -ANN m_bool check_ast(const Env env, Ast ast); - -ANN m_bool scan1_exp_decl(const Env env, const Exp_Decl* decl); -ANN m_bool scan2_exp_decl(const Env env, const Exp_Decl* decl); -ANN Type check_exp_decl(const Env env, const Exp_Decl* decl); - -ANN m_bool scan1_func_def(const Env env, const Func_Def def); -ANN m_bool scan2_func_def(const Env env, const Func_Def def); -ANN m_bool check_func_def(const Env env, const Func_Def def); - -ANN m_bool scan0_stmt_fptr(const Env env, const Stmt_Fptr def); -ANN m_bool scan1_stmt_fptr(const Env env, const Stmt_Fptr def); -ANN m_bool scan2_stmt_fptr(const Env env, const Stmt_Fptr def); -//ANN m_bool check_stmt_fptr(const Env env, const Stmt_Fptr def); - -ANN m_bool scan1_stmt_union(const Env env, const Stmt_Union def); -ANN m_bool scan2_stmt_union(const Env env, const Stmt_Union def); -ANN m_bool check_stmt_union(const Env env, const Stmt_Union def); - -ANN m_bool scan0_stmt_enum(const Env env, const Stmt_Enum def); -ANN m_bool scan1_stmt_enum(const Env env, const Stmt_Enum def); -//ANN m_bool scan2_stmt_enum(const Env env, const Stmt_Enum def); -ANN m_bool check_stmt_enum(const Env env, const Stmt_Enum def); - -ANN m_bool scan1_class_def(const Env env, const Class_Def def); -ANN m_bool scan2_class_def(const Env env, const Class_Def def); -ANN m_bool check_class_def(const Env env, const Class_Def def); - ANN m_bool traverse_ast(const Env env, const Ast ast) { CHECK_BB(scan0_ast(env, ast)) CHECK_BB(scan1_ast(env, ast))