123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657open!ImportmoduleReason=struct(*_ To be kept in sync with the Error module in gen/gen_parser_automaton.ml *)typet=|Unexpected_char_parsing_hex_escape|Unexpected_char_parsing_dec_escape|Unterminated_quoted_string|Unterminated_block_comment|Escape_sequence_out_of_range|Unclosed_paren|Too_many_sexps|Closed_paren_without_opened|Comment_token_in_unquoted_atom|Sexp_comment_without_sexp|Unexpected_character_after_cr|No_sexp_found_in_input|Automaton_in_error_stateendmoduletypeParse_error=sigtypet[@@deriving_inlinesexp_of]includesig[@@@ocaml.warning"-32"]valsexp_of_t:t->Ppx_sexp_conv_lib.Sexp.tend[@@ocaml.doc"@inline"][@@@end]valposition:t->Positions.posvalmessage:t->string(** Report an error in a style similar to OCaml, for instance:
File "blah", line 42, character 10:
Error: s-expression parsing error;
unterminated quoted string.
*)valreport:Format.formatter->filename:string->t->unitexceptionParse_erroroft(**/**)modulePrivate:sigmoduleReason=Reason(** To match the old behavior, the old parser sometimes raised [Failure] and sometimes
raised [Parse_error] *)valold_parser_exn:t->[`Parse_error|`Failure]valraise:Reason.t->Positions.pos->at_eof:bool->atom_buffer:Buffer.t->'aendend