1
2
3
4
5
6
7
8
9
10
11
12
open Util.Error
open Util.Source
let error (at : region) (msg : string) = error_runtime at msg
let warn (at : region) (msg : string) = warn_runtime at msg
let check (b : bool) (at : region) (msg : string) : unit =
if not b then error at msg