Skip to content
Snippets Groups Projects
lazyCompiler.mli 616 B
Newer Older
(** Time-stamp: <modified the 28/08/2008 (at 17:01) by Erwan Jahier> *)
Erwan Jahier's avatar
Erwan Jahier committed

(** nb: compiling = type checking + constant evaluation *)
Erwan Jahier's avatar
Erwan Jahier committed


(** A lazy compiler is an internal structure that contains tables
    storing compiled entities (types, const, node). At the beginning
    (on creation), it only contains empty tables. But then, one when
    ask for a type, a const, or a node, the tables are filled in.
*)
Erwan Jahier's avatar
Erwan Jahier committed
type t

Erwan Jahier's avatar
Erwan Jahier committed
(* Create a lazy compiler. *)
Erwan Jahier's avatar
Erwan Jahier committed

val node_check : t -> Eff.node_key -> Lxm.t -> Eff.node_exp
Erwan Jahier's avatar
Erwan Jahier committed


(* compile all items *)
val compile_all : t -> unit