main.mli 565 B

12345678910
  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
  4. [./civicc -help] in a terminal to see the available command-line options.
  5. Exceptions defined in {!Types} are caught and error messages printed
  6. accordingly. *)
  7. (** Main function of a phase. Each phase exports a function of this signature
  8. that is called by the {!main}. *)
  9. type phase_func = Types.intermediate -> Types.intermediate