summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/type/libtype.cc
blob: 50392d7ac831eb55960a08d56e4bcb2879bba7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 ** \file type/libtype.cc
 ** \brief Define the function exported by type module.
 */

#include <ast/exp.hh>
#include <type/libtype.hh>
#include <type/type-checker.hh>

namespace type
{
  misc::error types_check(ast::Ast& tree)
  {
    TypeChecker type;
    type(tree);
    return type.error_get();
  }

} // namespace type