reason
Reason: Syntax & Toolchain for OCaml
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package reason
-
reason
-
reason.cmdliner
-
reason.easy_format
-
reason.ocaml-migrate-parsetree
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library reason
Module
Reason_errors
type lexing_error =
| Illegal_character of char |
| Illegal_escape of string |
| Unterminated_comment of Reason_omp.Ast_411.Location.t |
| Unterminated_string |
| Unterminated_string_in_comment of Reason_omp.Ast_411.Location.t
* Reason_omp.Ast_411.Location.t |
| Keyword_as_label of string |
| Literal_overflow of string |
| Invalid_literal of string |
type 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 |
type reason_error =
| Lexing_error of lexing_error |
| Parsing_error of parsing_error |
| Ast_error of ast_error |
exception Reason_error of reason_error * Reason_omp.Ast_411.Location.t
val raise_error : reason_error -> Reason_omp.Ast_411.Location.t -> unit
val raise_fatal_error : reason_error -> Reason_omp.Ast_411.Location.t -> 'a
val recover_non_fatal_errors :
( unit -> 'a ) ->
( 'a, exn ) Result.result
* (reason_error * Reason_omp.Ast_411.Location.t) list
val recover_parser_error :
( Reason_omp.Ast_411.Location.t -> string -> 'a ) ->
Reason_omp.Ast_411.Location.t ->
string ->
'a
val report_error :
Format.formatter ->
loc:Reason_omp.Ast_411.Location.t ->
reason_error ->
unit
val error_extension_node_from_recovery :
Reason_omp.Ast_411.Location.t ->
string ->
string Reason_omp.Ast_411.Location.loc * Reason_omp.Ast_411.Parsetree.payload
val error_extension_node :
Reason_omp.Ast_411.Location.t ->
string ->
string Reason_omp.Ast_411.Location.loc * Reason_omp.Ast_411.Parsetree.payload
ON THIS PAGE
No table of contents