summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/bind/tasks.hh
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/bind/tasks.hh')
-rw-r--r--tiger-compiler/src/bind/tasks.hh42
1 files changed, 42 insertions, 0 deletions
diff --git a/tiger-compiler/src/bind/tasks.hh b/tiger-compiler/src/bind/tasks.hh
new file mode 100644
index 0000000..5ad970d
--- /dev/null
+++ b/tiger-compiler/src/bind/tasks.hh
@@ -0,0 +1,42 @@
+/**
+ ** \file bind/tasks.hh
+ ** \brief Bind module related tasks.
+ */
+
+// FIXME DONE: Some code was deleted here.
+#pragma once
+
+#include <task/libtask.hh>
+
+namespace bind::tasks
+{
+ TASK_GROUP("4. Binding");
+
+ // Binding tasks
+ DISJUNCTIVE_TASK_DECLARE("bound",
+ "default the binding to Tiger "
+ "(without objects nor overloading)",
+ "bindings-compute"
+ " combine-bindings-compute"
+ " object-bindings-compute"
+ " assert-bindings-compute");
+
+ TASK_DECLARE("b|bindings-compute",
+ "bind the name uses to their definitions",
+ bind,
+ "parse");
+
+ TASK_DECLARE("B|bindings-display",
+ "enable the bindings display in the next --ast-display "
+ "invocation. does not imply --bindings-compute",
+ display_bind,
+ "");
+
+ // Renaming tasks
+
+ TASK_DECLARE("rename",
+ "rename identifiers",
+ rename,
+ "bindings-compute");
+
+}