Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file CCSexp_intf.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134type'aor_error=('a,string)resulttype'asequence=('a->unit)->unittype'agen=unit->'aoption(** {2 Abstract representation of S-expressions}
@since 2.7 *)moduletypeSEXP=sigtypettypelocvalmake_loc:((int*int)->(int*int)->string->loc)option(** If provided, builds a location from a pair of [(line,column)] positions, and
a (possibly dummy) filename *)valatom_with_loc:loc:loc->string->tvallist_with_loc:loc:loc->tlist->tvalatom:string->tvallist:tlist->tvalmatch_:t->atom:(string->'a)->list:(tlist->'a)->'aend(** {2 Operations over S-expressions}
@since 2.7 *)moduletypeS=sigtypettypesexp=t(** {2 Re-exports} *)valatom:string->t(** Make an atom out of this string.
@since 2.8 *)vallist:tlist->t(** Make a Sexpr of this list.
@since 2.8 *)(** {2 Constructors} *)valof_int:int->tvalof_bool:bool->tvalof_list:tlist->tvalof_rev_list:tlist->t(** Reverse the list. *)valof_float:float->tvalof_unit:tvalof_pair:t*t->tvalof_triple:t*t*t->tvalof_quad:t*t*t*t->tvalof_variant:string->tlist->t(** [of_variant name args] is used to encode algebraic variants
into a S-expr. For instance [of_variant "some" [of_int 1]]
represents the value [Some 1]. *)valof_field:string->t->t(** Used to represent one record field. *)valof_record:(string*t)list->t(** Represent a record by its named fields. *)(** {2 Printing} *)valto_buf:Buffer.t->t->unitvalto_string:t->stringvalto_file:string->t->unitvalto_file_seq:string->tsequence->unit(** Print the given sequence of expressions to a file. *)valto_chan:out_channel->t->unitvalpp:Format.formatter->t->unit(** Pretty-printer nice on human eyes (including indentation). *)valpp_noindent:Format.formatter->t->unit(** Raw, direct printing as compact as possible. *)(** {2 Parsing} *)(** A parser of ['a] can return [Yield x] when it parsed a value,
or [Fail e] when a parse error was encountered, or
[End] if the input was empty. *)type'aparse_result=|Yieldof'a|Failofstring|EndmoduleDecoder:sigtypet(** Decoder *)valof_lexbuf:Lexing.lexbuf->tvalnext:t->sexpparse_result(** Parse the next S-expression or return an error if the input isn't
long enough or isn't a proper S-expression. *)valto_list:t->sexplistor_error(** Read all the values from this decoder.
@since 2.8 *)endvalparse_string:string->tor_error(** Parse a string. *)valparse_string_list:string->tlistor_error(** Parse a string into a list of S-exprs.
@since 2.8 *)valparse_chan:in_channel->tor_error(** Parse a S-expression from the given channel. Can read more data than
necessary, so don't use this if you need finer-grained control (e.g.
to read something else {b after} the S-exp). *)valparse_chan_gen:in_channel->tor_errorgen(** Parse a channel into a generator of S-expressions. *)valparse_chan_list:in_channel->tlistor_errorvalparse_file:string->tor_error(** Open the file and read a S-exp from it. *)valparse_file_list:string->tlistor_error(** Open the file and read a S-exp from it. *)end