summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/type/tasks.cc
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/type/tasks.cc
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/type/tasks.cc')
-rw-r--r--tiger-compiler/src/type/tasks.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/tiger-compiler/src/type/tasks.cc b/tiger-compiler/src/type/tasks.cc
new file mode 100644
index 0000000..261e015
--- /dev/null
+++ b/tiger-compiler/src/type/tasks.cc
@@ -0,0 +1,22 @@
+/**
+ ** \file type/tasks.cc
+ ** \brief Type module task implementations.
+ */
+
+#include <ast/tasks.hh>
+#include <common.hh>
+#include <type/libtype.hh>
+#define DEFINE_TASKS 1
+#include <type/tasks.hh>
+#undef DEFINE_TASKS
+
+// Type module related tasks' implementation.
+namespace type::tasks
+{
+ void types_check()
+ {
+ task_error() << ::type::types_check(*ast::tasks::the_program)
+ << &misc::error::exit_on_error;
+ }
+
+} // namespace type::tasks