type data = Data.definitions
val data_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> dataval sexp_of_data : data -> Ppx_sexp_conv_lib.Sexp.t
type src_type =
val src_type_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> src_typeval 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_errorval 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 -> stringval get_error_info : bool -> string -> src_type -> (Core_kernel__Int.t -> int -> string) -> Stdlib.Lexing.lexbuf -> syntax_errorval main : ?strict:bool -> string -> src_type -> Stdlib.Lexing.lexbuf -> (Core_kernel__Int.t -> int -> string) -> Webidl_syntax.Ast.definitionsval ast_from_string : ?strict:bool -> string -> string -> Webidl_syntax.Ast.definitionsval ast_from_channel : ?strict:bool -> string -> Core.In_channel.t -> Webidl_syntax.Ast.definitionsval ast_from_file : ?strict:bool -> string -> Webidl_syntax.Ast.definitionsval data_from_string : ?strict:bool -> string -> string -> (Webidl_syntax.Ast.extends * Data.definition) listval data_from_channel : ?strict:bool -> string -> Core.In_channel.t -> (Webidl_syntax.Ast.extends * Data.definition) listval data_from_file : ?strict:bool -> string -> (Webidl_syntax.Ast.extends * Data.definition) list