aboutsummaryrefslogtreecommitdiff
path: root/lib/analyzer.mli
blob: 3032375b8a45d5ea16879a73f0e033a076c344f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type error = {
  message : string;
  start_pos : Lexing.position;
  end_pos : Lexing.position;
}

val format_error : Format.formatter -> error -> unit

val parse :
  (module Qsp_syntax.S.Analyzer with type Location.repr = 'a) ->
  Lexing.lexbuf ->
  ('a, error) Result.t