summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/bind/libbind.cc
blob: 63dc4ee152ddc9e89765faffb9b9ca9f0dddc350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 ** \file bind/libbind.cc
 ** \brief Define exported bind functions.
 */


// FIXME DONE: Some code was deleted here.

#include <ast/ast.hh>
#include <misc/error.hh>

#include "renamer.hh"
#include "binder.hh"

namespace bind
{
    misc::error bind(ast::ChunkList* d)
    {
        Binder bdc = Binder();
        bdc(d);
        bdc.is_there__main();
        return bdc.error_get();
    }

    misc::error rename(ast::Ast& tree)
    {
        Renamer renamer;
        renamer(tree);
        return misc::error{};
    }
}