aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/analyzer.mli
diff options
context:
space:
mode:
authorChimrod <>2024-02-05 09:32:10 +0100
committerChimrod <>2024-02-08 14:16:41 +0100
commit916d37b93c8ad0e2fbe98377093726baf051b708 (patch)
treee8c6b77368fb8971af11a425ac61e0b3e2014beb /lib/qparser/analyzer.mli
parentd7a13b0e5d6e746993e67a291376bd79766e0ed1 (diff)
Ignore the global checkers if there is a syntax error; ignore error during recovery after a syntax error
Diffstat (limited to 'lib/qparser/analyzer.mli')
-rw-r--r--lib/qparser/analyzer.mli4
1 files changed, 3 insertions, 1 deletions
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