https://github.com/EasyCrypt/easycrypt
Revision ddf604b2725ed44db66e64ff4f97c89281b3a50a authored by François Dupressoir on 24 July 2017, 17:17:56 UTC, committed by François Dupressoir on 24 July 2017, 17:17:56 UTC
1 parent f173dc4
Raw File
Tip revision: ddf604b2725ed44db66e64ff4f97c89281b3a50a authored by François Dupressoir on 24 July 2017, 17:17:56 UTC
Fixing vonNeumann
Tip revision: ddf604b
ecTerminal.mli
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2016 - IMDEA Software Institute
 * Copyright (c) - 2012--2017 - Inria
 *
 * Distributed under the terms of the CeCILL-C-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
type terminal

type status = [
  | `ST_Ok
  | `ST_Failure of exn
]

type loglevel = EcGState.loglevel

(* -------------------------------------------------------------------- *)
val interactive : terminal -> bool
val next        : terminal -> EcParsetree.prog
val notice      : immediate:bool -> loglevel -> string -> terminal -> unit
val finish      : status -> terminal -> unit
val finalize    : terminal -> unit

(* -------------------------------------------------------------------- *)
val from_channel : ?gcstats:bool -> name:string -> in_channel -> terminal
val from_tty     : unit -> terminal
val from_emacs   : unit -> terminal
back to top