Source file error.ml

1
2
3
4
5
6
7
8
9
10
11
12
open Util.Error
open Util.Source

(* Error *)

let error (at : region) (msg : string) = error_builtin at msg
let warn (at : region) (msg : string) = warn_builtin at msg

(* Checks *)

let check (b : bool) (at : region) (msg : string) : unit =
  if not b then error at msg