Sourcetype lexing_error = | Illegal_character of char| Illegal_escape of string| Unterminated_string| Keyword_as_label of string| Literal_overflow of string| Invalid_literal of string
Sourcetype ast_error = | Not_expecting of Reason_omp.Ast_411.Location.t * string| Other_syntax_error of string| Variable_in_scope of Reason_omp.Ast_411.Location.t * string| Applicative_path of Reason_omp.Ast_411.Location.t
Sourcetype parsing_error = string Sourceval recover_non_fatal_errors :
(unit -> 'a) ->
('a, exn) Result.result * (reason_error * Reason_omp.Ast_411.Location.t) list Sourceval recover_parser_error :
(Reason_omp.Ast_411.Location.t -> string -> 'a) ->
Reason_omp.Ast_411.Location.t ->
string ->
'a