summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/type/tasks.hh
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.hh
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/type/tasks.hh')
-rw-r--r--tiger-compiler/src/type/tasks.hh29
1 files changed, 29 insertions, 0 deletions
diff --git a/tiger-compiler/src/type/tasks.hh b/tiger-compiler/src/type/tasks.hh
new file mode 100644
index 0000000..e6add54
--- /dev/null
+++ b/tiger-compiler/src/type/tasks.hh
@@ -0,0 +1,29 @@
+/**
+ ** \file type/tasks.hh
+ ** \brief Type module tasks.
+ */
+
+#pragma once
+
+#include <task/libtask.hh>
+
+namespace type::tasks
+{
+ TASK_GROUP("4. Type checking");
+
+ /// Default the type-checking to Tiger (without objects nor overloading).
+ DISJUNCTIVE_TASK_DECLARE("T|typed",
+ "default the type-checking to Tiger "
+ "(without objects nor overloading)",
+ "types-compute"
+ " combine-types-compute"
+ " object-types-compute"
+ " assert-types-compute");
+
+ /// Check for type violation.
+ TASK_DECLARE("types-compute",
+ "check for type violations",
+ types_check,
+ "bindings-compute");
+
+} // namespace type::tasks