main.mli 562 B

123456789
  1. (** Main module, parses command-line arguments and cycles through phases. *)
  2. (** Command-line arguments are first parsed and the result saved them in
  3. {!Globals.args}. Then all phases are executed successively. Run [./civcc -h]
  4. in a terminal to see the available command-line options. Exceptions defined
  5. in {!Types} are caught and error messages printed accordingly. *)
  6. (** Main function of a phase. Each phase exports a function of this signature
  7. that is called by the main module. *)
  8. type phase_func = Types.intermediate -> Types.intermediate