Module Webidl.Parse

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 =
| File
| Channel
| 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 = {
src : string;
src_type : src_type;
start_pos : int * int;
end_pos : int * int;
token : string;
strict : bool;
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 : (Core_kernel__Int.t -> int -> string) -> int -> int -> string
val get_error_info : bool -> string -> src_type -> (Core_kernel__Int.t -> int -> string) -> Stdlib.Lexing.lexbuf -> syntax_error
val main : ?⁠strict:bool -> string -> src_type -> Stdlib.Lexing.lexbuf -> (Core_kernel__Int.t -> 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