diff options
Diffstat (limited to 'tiger-compiler/src/bind/libbind.hh')
| -rw-r--r-- | tiger-compiler/src/bind/libbind.hh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tiger-compiler/src/bind/libbind.hh b/tiger-compiler/src/bind/libbind.hh new file mode 100644 index 0000000..f4b8bb5 --- /dev/null +++ b/tiger-compiler/src/bind/libbind.hh @@ -0,0 +1,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 |
