From 916d37b93c8ad0e2fbe98377093726baf051b708 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Mon, 5 Feb 2024 09:32:10 +0100 Subject: Ignore the global checkers if there is a syntax error; ignore error during recovery after a syntax error --- lib/qparser/analyzer.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/qparser/analyzer.mli') diff --git a/lib/qparser/analyzer.mli b/lib/qparser/analyzer.mli index 8033601..949db16 100644 --- a/lib/qparser/analyzer.mli +++ b/lib/qparser/analyzer.mli @@ -1,10 +1,12 @@ +type 'a result = { content : 'a; report : Qsp_syntax.Report.t list } + val parse : (module Qsp_syntax.S.Analyzer with type Location.t = 'a and type context = 'context) -> Lexbuf.t -> 'context -> - ('a * Qsp_syntax.Report.t list, Qsp_syntax.Report.t) Result.t + ('a result, Qsp_syntax.Report.t) Result.t (** Read the source and build a analyzis over it. This method make the link between the source file and how to read it -- cgit v1.2.3