diff options
author | Chimrod <> | 2023-09-22 18:19:02 +0200 |
---|---|---|
committer | Chimrod <> | 2023-09-22 18:19:02 +0200 |
commit | 1aaf8ae4d48bb9404b8faef2ba55024a6d6bac23 (patch) | |
tree | 129954eb88cec2ac8264d01f07a61c28b092f131 /lib/analyzer.mli | |
parent | 91d8d283760e5da4c777fad5ffbd29b9bf3ca71d (diff) |
Made the syntax analyzer generic
Diffstat (limited to 'lib/analyzer.mli')
-rw-r--r-- | lib/analyzer.mli | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/analyzer.mli b/lib/analyzer.mli new file mode 100644 index 0000000..3032375 --- /dev/null +++ b/lib/analyzer.mli @@ -0,0 +1,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 |