package flow_parser

  1. Overview
  2. Docs
module Token = Lexer_flow.Token
module Ast = Spider_monkey_ast
module Error = Parse_error
module SSet : sig ... end
module SMap : sig ... end
val filter_duplicate_errors : (Loc.t * Error.t) list -> (Loc.t * Error.t) list
val with_loc : (Parser_env.env -> 'a) -> Parser_env.env -> Loc.t * 'a
val string_starts_with : string -> string -> bool
module Parse : sig ... end
val do_parse : Parser_env.env -> (Parser_env.env -> 'a) -> bool -> 'a * (Loc.t * Error.t) list
val parse_program : bool -> ?token_sink:(Parser_env.token_sink_result -> unit) option -> ?parse_options:Parser_env.parse_options option -> Loc.filename option -> string -> Ast.program * (Loc.t * Error.t) list
val program : ?fail:bool -> ?token_sink:(Parser_env.token_sink_result -> unit) option -> ?parse_options:Parser_env.parse_options option -> string -> Ast.program * (Loc.t * Error.t) list
val program_file : ?fail:bool -> ?token_sink:(Parser_env.token_sink_result -> unit) option -> ?parse_options:Parser_env.parse_options option -> string -> Loc.filename option -> Ast.program * (Loc.t * Error.t) list
val json_file : ?fail:bool -> ?token_sink:(Parser_env.token_sink_result -> unit) option -> ?parse_options:Parser_env.parse_options option -> string -> Loc.filename option -> Ast.Expression.t * (Loc.t * Error.t) list
val jsx_pragma_expression : string -> Loc.filename option -> Ast.Expression.t * (Loc.t * Error.t) list
OCaml

Innovation. Community. Security.