From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/src/bind/tasks.cc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tiger-compiler/src/bind/tasks.cc (limited to 'tiger-compiler/src/bind/tasks.cc') diff --git a/tiger-compiler/src/bind/tasks.cc b/tiger-compiler/src/bind/tasks.cc new file mode 100644 index 0000000..6492463 --- /dev/null +++ b/tiger-compiler/src/bind/tasks.cc @@ -0,0 +1,34 @@ +/** + ** \file bind/tasks.cc + ** \brief Bind module tasks implementation. + */ + +// FIXME DONE: Some code was deleted here. +#include +#include +#include +#define DEFINE_TASKS 1 +#include +#undef DEFINE_TASKS +#include + +namespace bind::tasks +{ + + void bind() { + misc::error& program_error = task_error(); + program_error << bind::bind(ast::tasks::the_program.get()); + program_error.exit_on_error(); + } + + void display_bind() { + ast::bindings_display(std::cout) = true; + } + + void rename() { + misc::error& program_error = task_error(); + program_error << bind::rename(*ast::tasks::the_program); + program_error.exit_on_error(); + } + +} -- cgit v1.2.3