summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/bind/libbind.hh
blob: f4b8bb58deef616d16373fff117f7fd879ed3bdd (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
/**
** \file bind/libbind.hh
 ** \brief Interface of the bind module.
 */

// FIXME DONE: Some code was deleted here.

#pragma once

#include <ast/fwd.hh>
#include <misc/error.hh>
#include <bind/binder.hh>

namespace bind
{
  /// \brief Bind the whole ast in place, return the error code
  ///
  /// \param last                    the ast you want to bind
  ///
  /// \return a misc::error that serve to indicate possible failure
  misc::error bind(ast::ChunkList* d);
  
  /// \brief Rename the whole ast in place
  ///
  /// \param ast                    the ast you want to rename
  ///
  /// \return a misc::error that serve to indicate possible failure
  misc::error rename(ast::Ast& ast);
} // namespace bind