summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/bind/tasks.hh
blob: 5ad970d76f2c5f83e8c3044dc681a87a8bb43ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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");

}