package js_of_ocaml-webidl

  1. Overview
  2. Docs
module Syntax = Webidl_syntax
type data = Data.definitions
val data_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> data
val sexp_of_data : data -> Ppx_sexp_conv_lib.Sexp.t
type src_type =
  1. | File
  2. | Channel
  3. | String
val src_type_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> src_type
val sexp_of_src_type : src_type -> Ppx_sexp_conv_lib.Sexp.t
type syntax_error = {
  1. src : string;
  2. src_type : src_type;
  3. start_pos : int * int;
  4. end_pos : int * int;
  5. token : string;
  6. strict : bool;
  7. around : string;
}
val syntax_error_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> syntax_error
val sexp_of_syntax_error : syntax_error -> Ppx_sexp_conv_lib.Sexp.t
exception Syntax_error of syntax_error
val get_around : (int -> int -> string) -> int -> int -> string
val get_error_info : bool -> string -> src_type -> (int -> int -> string) -> Lexing.lexbuf -> syntax_error
val main : ?strict:bool -> string -> src_type -> Lexing.lexbuf -> (int -> int -> string) -> Webidl_syntax.Ast.definitions
val ast_from_string : ?strict:bool -> string -> string -> Webidl_syntax.Ast.definitions
val ast_from_channel : ?strict:bool -> string -> Core.In_channel.t -> Webidl_syntax.Ast.definitions
val ast_from_file : ?strict:bool -> string -> Webidl_syntax.Ast.definitions
val data_from_string : ?strict:bool -> string -> string -> (Webidl_syntax.Ast.extends * Data.definition) list
val data_from_channel : ?strict:bool -> string -> Core.In_channel.t -> (Webidl_syntax.Ast.extends * Data.definition) list
val data_from_file : ?strict:bool -> string -> (Webidl_syntax.Ast.extends * Data.definition) list