package ast_generic

  1. Overview
  2. Docs
type class_kind = Ast_generic_v1_t.class_kind
type concat_string_kind = Ast_generic_v1_t.concat_string_kind
type const_type = Ast_generic_v1_t.const_type
type container_operator = Ast_generic_v1_t.container_operator
type function_kind = Ast_generic_v1_t.function_kind
type keyword_attribute = Ast_generic_v1_t.keyword_attribute
type prefix_postfix = Ast_generic_v1_t.prefix_postfix
type token_location = Ast_generic_v1_t.token_location = {
  1. str : string;
  2. charpos : int;
  3. line : int;
  4. column : int;
  5. filename : string;
}
type 'a bracket = 'a Ast_generic_v1_t.bracket
type 'a wrap_ = 'a Ast_generic_v1_t.wrap_
type dotted_ident = Ast_generic_v1_t.dotted_ident
type module_name = Ast_generic_v1_t.module_name
type resolved_name_kind = Ast_generic_v1_t.resolved_name_kind
type resolved_name = Ast_generic_v1_t.resolved_name
and case_and_body = Ast_generic_v1_t.case_and_body
and class_definition = Ast_generic_v1_t.class_definition = {
  1. ckind : class_kind wrap_;
  2. cextends : class_parent list;
  3. cimplements : type_ list;
  4. cmixins : type_ list;
  5. cparams : parameters;
  6. cbody : field list bracket;
}
and comprehension = Ast_generic_v1_t.comprehension
and definition_kind = Ast_generic_v1_t.definition_kind
and entity = Ast_generic_v1_t.entity = {
  1. name : entity_name;
  2. attrs : attribute list;
  3. tparams : type_parameters;
}
and enum_entry_definition = Ast_generic_v1_t.enum_entry_definition = {
  1. ee_args : arguments option;
  2. ee_body : field list bracket option;
}
and for_or_if_comp = Ast_generic_v1_t.for_or_if_comp
and for_var_or_expr = Ast_generic_v1_t.for_var_or_expr
and function_body = Ast_generic_v1_t.function_body
and function_definition = Ast_generic_v1_t.function_definition = {
  1. fkind : function_kind wrap_;
  2. fparams : parameters;
  3. frettype : type_ option;
  4. fbody : function_body;
}
and id_info = Ast_generic_v1_t.id_info = {
  1. id_resolved : resolved_name option;
  2. id_type : type_ option;
  3. id_svalue : svalue option;
}
and macro_definition = Ast_generic_v1_t.macro_definition = {
  1. macroparams : ident list;
  2. macrobody : any list;
}
and module_definition = Ast_generic_v1_t.module_definition = {
  1. mbody : module_definition_kind;
}
and module_definition_kind = Ast_generic_v1_t.module_definition_kind
and multi_for_each = Ast_generic_v1_t.multi_for_each
and or_type_element = Ast_generic_v1_t.or_type_element
and parameter_classic = Ast_generic_v1_t.parameter_classic = {
  1. pname : ident option;
  2. ptype : type_ option;
  3. pdefault : expr option;
  4. pattrs : attribute list;
  5. pinfo : id_info;
}
and qualified_info = Ast_generic_v1_t.qualified_info = {
  1. name_last : ident * type_arguments option;
  2. name_middle : qualifier option;
  3. name_top : tok option;
  4. name_info : id_info;
}
and type_argument = Ast_generic_v1_t.type_argument
and type_arguments = Ast_generic_v1_t.type_arguments
and type_definition = Ast_generic_v1_t.type_definition = {
  1. tbody : type_definition_kind;
}
and type_definition_kind = Ast_generic_v1_t.type_definition_kind
and type_parameter = Ast_generic_v1_t.type_parameter
and type_parameter_classic = Ast_generic_v1_t.type_parameter_classic = {
  1. tp_id : ident;
  2. tp_attrs : attribute list;
  3. tp_bounds : type_ list;
  4. tp_default : type_ option;
  5. tp_variance : variance wrap_ option;
}
and type_parameters = Ast_generic_v1_t.type_parameters
and variable_definition = Ast_generic_v1_t.variable_definition = {
  1. vinit : expr option;
  2. vtype : type_ option;
}
and xml = Ast_generic_v1_t.xml = {
  1. xml_kind : xml_kind;
  2. xml_attrs : xml_attribute list;
  3. xml_body : xml_body list;
}
and xml_attr_value = Ast_generic_v1_t.xml_attr_value
and xml_attribute = Ast_generic_v1_t.xml_attribute
val write_class_kind : Stdlib.Buffer.t -> class_kind -> unit

Output a JSON value of type class_kind.

val string_of_class_kind : ?len:int -> class_kind -> string

Serialize a value of type class_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_class_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> class_kind

Input JSON data of type class_kind.

val class_kind_of_string : string -> class_kind

Deserialize JSON data of type class_kind.

val write_concat_string_kind : Stdlib.Buffer.t -> concat_string_kind -> unit

Output a JSON value of type concat_string_kind.

val string_of_concat_string_kind : ?len:int -> concat_string_kind -> string

Serialize a value of type concat_string_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_concat_string_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> concat_string_kind

Input JSON data of type concat_string_kind.

val concat_string_kind_of_string : string -> concat_string_kind

Deserialize JSON data of type concat_string_kind.

val write_const_type : Stdlib.Buffer.t -> const_type -> unit

Output a JSON value of type const_type.

val string_of_const_type : ?len:int -> const_type -> string

Serialize a value of type const_type into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_const_type : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> const_type

Input JSON data of type const_type.

val const_type_of_string : string -> const_type

Deserialize JSON data of type const_type.

val write_container_operator : Stdlib.Buffer.t -> container_operator -> unit

Output a JSON value of type container_operator.

val string_of_container_operator : ?len:int -> container_operator -> string

Serialize a value of type container_operator into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_container_operator : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> container_operator

Input JSON data of type container_operator.

val container_operator_of_string : string -> container_operator

Deserialize JSON data of type container_operator.

val write_function_kind : Stdlib.Buffer.t -> function_kind -> unit

Output a JSON value of type function_kind.

val string_of_function_kind : ?len:int -> function_kind -> string

Serialize a value of type function_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_function_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> function_kind

Input JSON data of type function_kind.

val function_kind_of_string : string -> function_kind

Deserialize JSON data of type function_kind.

val write_incr_decr : Stdlib.Buffer.t -> incr_decr -> unit

Output a JSON value of type incr_decr.

val string_of_incr_decr : ?len:int -> incr_decr -> string

Serialize a value of type incr_decr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_incr_decr : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> incr_decr

Input JSON data of type incr_decr.

val incr_decr_of_string : string -> incr_decr

Deserialize JSON data of type incr_decr.

val write_keyword_attribute : Stdlib.Buffer.t -> keyword_attribute -> unit

Output a JSON value of type keyword_attribute.

val string_of_keyword_attribute : ?len:int -> keyword_attribute -> string

Serialize a value of type keyword_attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_keyword_attribute : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> keyword_attribute

Input JSON data of type keyword_attribute.

val keyword_attribute_of_string : string -> keyword_attribute

Deserialize JSON data of type keyword_attribute.

val write_operator : Stdlib.Buffer.t -> operator -> unit

Output a JSON value of type operator.

val string_of_operator : ?len:int -> operator -> string

Serialize a value of type operator into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_operator : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> operator

Input JSON data of type operator.

val operator_of_string : string -> operator

Deserialize JSON data of type operator.

val write_prefix_postfix : Stdlib.Buffer.t -> prefix_postfix -> unit

Output a JSON value of type prefix_postfix.

val string_of_prefix_postfix : ?len:int -> prefix_postfix -> string

Serialize a value of type prefix_postfix into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_prefix_postfix : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> prefix_postfix

Input JSON data of type prefix_postfix.

val prefix_postfix_of_string : string -> prefix_postfix

Deserialize JSON data of type prefix_postfix.

val write_sid : Stdlib.Buffer.t -> sid -> unit

Output a JSON value of type sid.

val string_of_sid : ?len:int -> sid -> string

Serialize a value of type sid into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_sid : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> sid

Input JSON data of type sid.

val sid_of_string : string -> sid

Deserialize JSON data of type sid.

val write_special : Stdlib.Buffer.t -> special -> unit

Output a JSON value of type special.

val string_of_special : ?len:int -> special -> string

Serialize a value of type special into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_special : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> special

Input JSON data of type special.

val special_of_string : string -> special

Deserialize JSON data of type special.

val write_token_location : Stdlib.Buffer.t -> token_location -> unit

Output a JSON value of type token_location.

val string_of_token_location : ?len:int -> token_location -> string

Serialize a value of type token_location into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_token_location : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> token_location

Input JSON data of type token_location.

val token_location_of_string : string -> token_location

Deserialize JSON data of type token_location.

val write_token : Stdlib.Buffer.t -> token -> unit

Output a JSON value of type token.

val string_of_token : ?len:int -> token -> string

Serialize a value of type token into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_token : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> token

Input JSON data of type token.

val token_of_string : string -> token

Deserialize JSON data of type token.

val write_tok : Stdlib.Buffer.t -> tok -> unit

Output a JSON value of type tok.

val string_of_tok : ?len:int -> tok -> string

Serialize a value of type tok into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_tok : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> tok

Input JSON data of type tok.

val tok_of_string : string -> tok

Deserialize JSON data of type tok.

val write_bracket : (Stdlib.Buffer.t -> 'a -> unit) -> Stdlib.Buffer.t -> 'a bracket -> unit

Output a JSON value of type bracket.

val string_of_bracket : (Stdlib.Buffer.t -> 'a -> unit) -> ?len:int -> 'a bracket -> string

Serialize a value of type bracket into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_bracket : (Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a) -> Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a bracket

Input JSON data of type bracket.

val bracket_of_string : (Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a) -> string -> 'a bracket

Deserialize JSON data of type bracket.

val write_sc : Stdlib.Buffer.t -> sc -> unit

Output a JSON value of type sc.

val string_of_sc : ?len:int -> sc -> string

Serialize a value of type sc into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_sc : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> sc

Input JSON data of type sc.

val sc_of_string : string -> sc

Deserialize JSON data of type sc.

val write_variance : Stdlib.Buffer.t -> variance -> unit

Output a JSON value of type variance.

val string_of_variance : ?len:int -> variance -> string

Serialize a value of type variance into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_variance : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> variance

Input JSON data of type variance.

val variance_of_string : string -> variance

Deserialize JSON data of type variance.

val write_wrap_ : (Stdlib.Buffer.t -> 'a -> unit) -> Stdlib.Buffer.t -> 'a wrap_ -> unit

Output a JSON value of type wrap_.

val string_of_wrap_ : (Stdlib.Buffer.t -> 'a -> unit) -> ?len:int -> 'a wrap_ -> string

Serialize a value of type wrap_ into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_wrap_ : (Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a) -> Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a wrap_

Input JSON data of type wrap_.

val wrap__of_string : (Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> 'a) -> string -> 'a wrap_

Deserialize JSON data of type wrap_.

val write_ident : Stdlib.Buffer.t -> ident -> unit

Output a JSON value of type ident.

val string_of_ident : ?len:int -> ident -> string

Serialize a value of type ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_ident : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> ident

Input JSON data of type ident.

val ident_of_string : string -> ident

Deserialize JSON data of type ident.

val write_dotted_ident : Stdlib.Buffer.t -> dotted_ident -> unit

Output a JSON value of type dotted_ident.

val string_of_dotted_ident : ?len:int -> dotted_ident -> string

Serialize a value of type dotted_ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_dotted_ident : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> dotted_ident

Input JSON data of type dotted_ident.

val dotted_ident_of_string : string -> dotted_ident

Deserialize JSON data of type dotted_ident.

val write_label : Stdlib.Buffer.t -> label -> unit

Output a JSON value of type label.

val string_of_label : ?len:int -> label -> string

Serialize a value of type label into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_label : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> label

Input JSON data of type label.

val label_of_string : string -> label

Deserialize JSON data of type label.

val write_literal : Stdlib.Buffer.t -> literal -> unit

Output a JSON value of type literal.

val string_of_literal : ?len:int -> literal -> string

Serialize a value of type literal into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_literal : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> literal

Input JSON data of type literal.

val literal_of_string : string -> literal

Deserialize JSON data of type literal.

val write_module_name : Stdlib.Buffer.t -> module_name -> unit

Output a JSON value of type module_name.

val string_of_module_name : ?len:int -> module_name -> string

Serialize a value of type module_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_module_name : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> module_name

Input JSON data of type module_name.

val module_name_of_string : string -> module_name

Deserialize JSON data of type module_name.

val write_resolved_name_kind : Stdlib.Buffer.t -> resolved_name_kind -> unit

Output a JSON value of type resolved_name_kind.

val string_of_resolved_name_kind : ?len:int -> resolved_name_kind -> string

Serialize a value of type resolved_name_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_resolved_name_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> resolved_name_kind

Input JSON data of type resolved_name_kind.

val resolved_name_kind_of_string : string -> resolved_name_kind

Deserialize JSON data of type resolved_name_kind.

val write_resolved_name : Stdlib.Buffer.t -> resolved_name -> unit

Output a JSON value of type resolved_name.

val string_of_resolved_name : ?len:int -> resolved_name -> string

Serialize a value of type resolved_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_resolved_name : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> resolved_name

Input JSON data of type resolved_name.

val resolved_name_of_string : string -> resolved_name

Deserialize JSON data of type resolved_name.

val write_todo_kind : Stdlib.Buffer.t -> todo_kind -> unit

Output a JSON value of type todo_kind.

val string_of_todo_kind : ?len:int -> todo_kind -> string

Serialize a value of type todo_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_todo_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> todo_kind

Input JSON data of type todo_kind.

val todo_kind_of_string : string -> todo_kind

Deserialize JSON data of type todo_kind.

val write_xml_kind : Stdlib.Buffer.t -> xml_kind -> unit

Output a JSON value of type xml_kind.

val string_of_xml_kind : ?len:int -> xml_kind -> string

Serialize a value of type xml_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_xml_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> xml_kind

Input JSON data of type xml_kind.

val xml_kind_of_string : string -> xml_kind

Deserialize JSON data of type xml_kind.

val write_alias : Stdlib.Buffer.t -> alias -> unit

Output a JSON value of type alias.

val string_of_alias : ?len:int -> alias -> string

Serialize a value of type alias into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_alias : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> alias

Input JSON data of type alias.

val alias_of_string : string -> alias

Deserialize JSON data of type alias.

val write_any : Stdlib.Buffer.t -> any -> unit

Output a JSON value of type any.

val string_of_any : ?len:int -> any -> string

Serialize a value of type any into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_any : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> any

Input JSON data of type any.

val any_of_string : string -> any

Deserialize JSON data of type any.

val write_argument : Stdlib.Buffer.t -> argument -> unit

Output a JSON value of type argument.

val string_of_argument : ?len:int -> argument -> string

Serialize a value of type argument into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_argument : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> argument

Input JSON data of type argument.

val argument_of_string : string -> argument

Deserialize JSON data of type argument.

val write_arguments : Stdlib.Buffer.t -> arguments -> unit

Output a JSON value of type arguments.

val string_of_arguments : ?len:int -> arguments -> string

Serialize a value of type arguments into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_arguments : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> arguments

Input JSON data of type arguments.

val arguments_of_string : string -> arguments

Deserialize JSON data of type arguments.

val write_attribute : Stdlib.Buffer.t -> attribute -> unit

Output a JSON value of type attribute.

val string_of_attribute : ?len:int -> attribute -> string

Serialize a value of type attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_attribute : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> attribute

Input JSON data of type attribute.

val attribute_of_string : string -> attribute

Deserialize JSON data of type attribute.

val write_case : Stdlib.Buffer.t -> case -> unit

Output a JSON value of type case.

val string_of_case : ?len:int -> case -> string

Serialize a value of type case into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_case : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> case

Input JSON data of type case.

val case_of_string : string -> case

Deserialize JSON data of type case.

val write_case_and_body : Stdlib.Buffer.t -> case_and_body -> unit

Output a JSON value of type case_and_body.

val string_of_case_and_body : ?len:int -> case_and_body -> string

Serialize a value of type case_and_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_case_and_body : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> case_and_body

Input JSON data of type case_and_body.

val case_and_body_of_string : string -> case_and_body

Deserialize JSON data of type case_and_body.

val write_catch : Stdlib.Buffer.t -> catch -> unit

Output a JSON value of type catch.

val string_of_catch : ?len:int -> catch -> string

Serialize a value of type catch into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_catch : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> catch

Input JSON data of type catch.

val catch_of_string : string -> catch

Deserialize JSON data of type catch.

val write_catch_exn : Stdlib.Buffer.t -> catch_exn -> unit

Output a JSON value of type catch_exn.

val string_of_catch_exn : ?len:int -> catch_exn -> string

Serialize a value of type catch_exn into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_catch_exn : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> catch_exn

Input JSON data of type catch_exn.

val catch_exn_of_string : string -> catch_exn

Deserialize JSON data of type catch_exn.

val write_class_definition : Stdlib.Buffer.t -> class_definition -> unit

Output a JSON value of type class_definition.

val string_of_class_definition : ?len:int -> class_definition -> string

Serialize a value of type class_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_class_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> class_definition

Input JSON data of type class_definition.

val class_definition_of_string : string -> class_definition

Deserialize JSON data of type class_definition.

val write_class_parent : Stdlib.Buffer.t -> class_parent -> unit

Output a JSON value of type class_parent.

val string_of_class_parent : ?len:int -> class_parent -> string

Serialize a value of type class_parent into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_class_parent : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> class_parent

Input JSON data of type class_parent.

val class_parent_of_string : string -> class_parent

Deserialize JSON data of type class_parent.

val write_comprehension : Stdlib.Buffer.t -> comprehension -> unit

Output a JSON value of type comprehension.

val string_of_comprehension : ?len:int -> comprehension -> string

Serialize a value of type comprehension into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_comprehension : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> comprehension

Input JSON data of type comprehension.

val comprehension_of_string : string -> comprehension

Deserialize JSON data of type comprehension.

val write_condition : Stdlib.Buffer.t -> condition -> unit

Output a JSON value of type condition.

val string_of_condition : ?len:int -> condition -> string

Serialize a value of type condition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_condition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> condition

Input JSON data of type condition.

val condition_of_string : string -> condition

Deserialize JSON data of type condition.

val write_definition : Stdlib.Buffer.t -> definition -> unit

Output a JSON value of type definition.

val string_of_definition : ?len:int -> definition -> string

Serialize a value of type definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> definition

Input JSON data of type definition.

val definition_of_string : string -> definition

Deserialize JSON data of type definition.

val write_definition_kind : Stdlib.Buffer.t -> definition_kind -> unit

Output a JSON value of type definition_kind.

val string_of_definition_kind : ?len:int -> definition_kind -> string

Serialize a value of type definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_definition_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> definition_kind

Input JSON data of type definition_kind.

val definition_kind_of_string : string -> definition_kind

Deserialize JSON data of type definition_kind.

val write_directive : Stdlib.Buffer.t -> directive -> unit

Output a JSON value of type directive.

val string_of_directive : ?len:int -> directive -> string

Serialize a value of type directive into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_directive : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> directive

Input JSON data of type directive.

val directive_of_string : string -> directive

Deserialize JSON data of type directive.

val write_entity : Stdlib.Buffer.t -> entity -> unit

Output a JSON value of type entity.

val string_of_entity : ?len:int -> entity -> string

Serialize a value of type entity into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_entity : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> entity

Input JSON data of type entity.

val entity_of_string : string -> entity

Deserialize JSON data of type entity.

val write_entity_name : Stdlib.Buffer.t -> entity_name -> unit

Output a JSON value of type entity_name.

val string_of_entity_name : ?len:int -> entity_name -> string

Serialize a value of type entity_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_entity_name : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> entity_name

Input JSON data of type entity_name.

val entity_name_of_string : string -> entity_name

Deserialize JSON data of type entity_name.

val write_enum_entry_definition : Stdlib.Buffer.t -> enum_entry_definition -> unit

Output a JSON value of type enum_entry_definition.

val string_of_enum_entry_definition : ?len:int -> enum_entry_definition -> string

Serialize a value of type enum_entry_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_enum_entry_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> enum_entry_definition

Input JSON data of type enum_entry_definition.

val enum_entry_definition_of_string : string -> enum_entry_definition

Deserialize JSON data of type enum_entry_definition.

val write_expr : Stdlib.Buffer.t -> expr -> unit

Output a JSON value of type expr.

val string_of_expr : ?len:int -> expr -> string

Serialize a value of type expr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_expr : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> expr

Input JSON data of type expr.

val expr_of_string : string -> expr

Deserialize JSON data of type expr.

val write_field : Stdlib.Buffer.t -> field -> unit

Output a JSON value of type field.

val string_of_field : ?len:int -> field -> string

Serialize a value of type field into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_field : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> field

Input JSON data of type field.

val field_of_string : string -> field

Deserialize JSON data of type field.

val write_field_name : Stdlib.Buffer.t -> field_name -> unit

Output a JSON value of type field_name.

val string_of_field_name : ?len:int -> field_name -> string

Serialize a value of type field_name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_field_name : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> field_name

Input JSON data of type field_name.

val field_name_of_string : string -> field_name

Deserialize JSON data of type field_name.

val write_finally : Stdlib.Buffer.t -> finally -> unit

Output a JSON value of type finally.

val string_of_finally : ?len:int -> finally -> string

Serialize a value of type finally into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_finally : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> finally

Input JSON data of type finally.

val finally_of_string : string -> finally

Deserialize JSON data of type finally.

val write_for_each : Stdlib.Buffer.t -> for_each -> unit

Output a JSON value of type for_each.

val string_of_for_each : ?len:int -> for_each -> string

Serialize a value of type for_each into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_for_each : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> for_each

Input JSON data of type for_each.

val for_each_of_string : string -> for_each

Deserialize JSON data of type for_each.

val write_for_header : Stdlib.Buffer.t -> for_header -> unit

Output a JSON value of type for_header.

val string_of_for_header : ?len:int -> for_header -> string

Serialize a value of type for_header into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_for_header : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> for_header

Input JSON data of type for_header.

val for_header_of_string : string -> for_header

Deserialize JSON data of type for_header.

val write_for_or_if_comp : Stdlib.Buffer.t -> for_or_if_comp -> unit

Output a JSON value of type for_or_if_comp.

val string_of_for_or_if_comp : ?len:int -> for_or_if_comp -> string

Serialize a value of type for_or_if_comp into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_for_or_if_comp : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> for_or_if_comp

Input JSON data of type for_or_if_comp.

val for_or_if_comp_of_string : string -> for_or_if_comp

Deserialize JSON data of type for_or_if_comp.

val write_for_var_or_expr : Stdlib.Buffer.t -> for_var_or_expr -> unit

Output a JSON value of type for_var_or_expr.

val string_of_for_var_or_expr : ?len:int -> for_var_or_expr -> string

Serialize a value of type for_var_or_expr into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_for_var_or_expr : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> for_var_or_expr

Input JSON data of type for_var_or_expr.

val for_var_or_expr_of_string : string -> for_var_or_expr

Deserialize JSON data of type for_var_or_expr.

val write_function_body : Stdlib.Buffer.t -> function_body -> unit

Output a JSON value of type function_body.

val string_of_function_body : ?len:int -> function_body -> string

Serialize a value of type function_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_function_body : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> function_body

Input JSON data of type function_body.

val function_body_of_string : string -> function_body

Deserialize JSON data of type function_body.

val write_function_definition : Stdlib.Buffer.t -> function_definition -> unit

Output a JSON value of type function_definition.

val string_of_function_definition : ?len:int -> function_definition -> string

Serialize a value of type function_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_function_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> function_definition

Input JSON data of type function_definition.

val function_definition_of_string : string -> function_definition

Deserialize JSON data of type function_definition.

val write_id_info : Stdlib.Buffer.t -> id_info -> unit

Output a JSON value of type id_info.

val string_of_id_info : ?len:int -> id_info -> string

Serialize a value of type id_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_id_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> id_info

Input JSON data of type id_info.

val id_info_of_string : string -> id_info

Deserialize JSON data of type id_info.

val write_item : Stdlib.Buffer.t -> item -> unit

Output a JSON value of type item.

val string_of_item : ?len:int -> item -> string

Serialize a value of type item into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_item : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> item

Input JSON data of type item.

val item_of_string : string -> item

Deserialize JSON data of type item.

val write_label_ident : Stdlib.Buffer.t -> label_ident -> unit

Output a JSON value of type label_ident.

val string_of_label_ident : ?len:int -> label_ident -> string

Serialize a value of type label_ident into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_label_ident : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> label_ident

Input JSON data of type label_ident.

val label_ident_of_string : string -> label_ident

Deserialize JSON data of type label_ident.

val write_macro_definition : Stdlib.Buffer.t -> macro_definition -> unit

Output a JSON value of type macro_definition.

val string_of_macro_definition : ?len:int -> macro_definition -> string

Serialize a value of type macro_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_macro_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> macro_definition

Input JSON data of type macro_definition.

val macro_definition_of_string : string -> macro_definition

Deserialize JSON data of type macro_definition.

val write_module_definition : Stdlib.Buffer.t -> module_definition -> unit

Output a JSON value of type module_definition.

val string_of_module_definition : ?len:int -> module_definition -> string

Serialize a value of type module_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_module_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> module_definition

Input JSON data of type module_definition.

val module_definition_of_string : string -> module_definition

Deserialize JSON data of type module_definition.

val write_module_definition_kind : Stdlib.Buffer.t -> module_definition_kind -> unit

Output a JSON value of type module_definition_kind.

val string_of_module_definition_kind : ?len:int -> module_definition_kind -> string

Serialize a value of type module_definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_module_definition_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> module_definition_kind

Input JSON data of type module_definition_kind.

val module_definition_kind_of_string : string -> module_definition_kind

Deserialize JSON data of type module_definition_kind.

val write_multi_for_each : Stdlib.Buffer.t -> multi_for_each -> unit

Output a JSON value of type multi_for_each.

val string_of_multi_for_each : ?len:int -> multi_for_each -> string

Serialize a value of type multi_for_each into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_multi_for_each : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> multi_for_each

Input JSON data of type multi_for_each.

val multi_for_each_of_string : string -> multi_for_each

Deserialize JSON data of type multi_for_each.

val write_name : Stdlib.Buffer.t -> name -> unit

Output a JSON value of type name.

val string_of_name : ?len:int -> name -> string

Serialize a value of type name into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_name : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> name

Input JSON data of type name.

val name_of_string : string -> name

Deserialize JSON data of type name.

val write_or_type_element : Stdlib.Buffer.t -> or_type_element -> unit

Output a JSON value of type or_type_element.

val string_of_or_type_element : ?len:int -> or_type_element -> string

Serialize a value of type or_type_element into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_or_type_element : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> or_type_element

Input JSON data of type or_type_element.

val or_type_element_of_string : string -> or_type_element

Deserialize JSON data of type or_type_element.

val write_parameter : Stdlib.Buffer.t -> parameter -> unit

Output a JSON value of type parameter.

val string_of_parameter : ?len:int -> parameter -> string

Serialize a value of type parameter into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_parameter : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> parameter

Input JSON data of type parameter.

val parameter_of_string : string -> parameter

Deserialize JSON data of type parameter.

val write_parameter_classic : Stdlib.Buffer.t -> parameter_classic -> unit

Output a JSON value of type parameter_classic.

val string_of_parameter_classic : ?len:int -> parameter_classic -> string

Serialize a value of type parameter_classic into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_parameter_classic : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> parameter_classic

Input JSON data of type parameter_classic.

val parameter_classic_of_string : string -> parameter_classic

Deserialize JSON data of type parameter_classic.

val write_parameters : Stdlib.Buffer.t -> parameters -> unit

Output a JSON value of type parameters.

val string_of_parameters : ?len:int -> parameters -> string

Serialize a value of type parameters into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_parameters : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> parameters

Input JSON data of type parameters.

val parameters_of_string : string -> parameters

Deserialize JSON data of type parameters.

val write_pattern : Stdlib.Buffer.t -> pattern -> unit

Output a JSON value of type pattern.

val string_of_pattern : ?len:int -> pattern -> string

Serialize a value of type pattern into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_pattern : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> pattern

Input JSON data of type pattern.

val pattern_of_string : string -> pattern

Deserialize JSON data of type pattern.

val write_qualified_info : Stdlib.Buffer.t -> qualified_info -> unit

Output a JSON value of type qualified_info.

val string_of_qualified_info : ?len:int -> qualified_info -> string

Serialize a value of type qualified_info into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_qualified_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> qualified_info

Input JSON data of type qualified_info.

val qualified_info_of_string : string -> qualified_info

Deserialize JSON data of type qualified_info.

val write_qualifier : Stdlib.Buffer.t -> qualifier -> unit

Output a JSON value of type qualifier.

val string_of_qualifier : ?len:int -> qualifier -> string

Serialize a value of type qualifier into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_qualifier : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> qualifier

Input JSON data of type qualifier.

val qualifier_of_string : string -> qualifier

Deserialize JSON data of type qualifier.

val write_stmt : Stdlib.Buffer.t -> stmt -> unit

Output a JSON value of type stmt.

val string_of_stmt : ?len:int -> stmt -> string

Serialize a value of type stmt into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_stmt : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> stmt

Input JSON data of type stmt.

val stmt_of_string : string -> stmt

Deserialize JSON data of type stmt.

val write_svalue : Stdlib.Buffer.t -> svalue -> unit

Output a JSON value of type svalue.

val string_of_svalue : ?len:int -> svalue -> string

Serialize a value of type svalue into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_svalue : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> svalue

Input JSON data of type svalue.

val svalue_of_string : string -> svalue

Deserialize JSON data of type svalue.

val write_type_ : Stdlib.Buffer.t -> type_ -> unit

Output a JSON value of type type_.

val string_of_type_ : ?len:int -> type_ -> string

Serialize a value of type type_ into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_ : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_

Input JSON data of type type_.

val type__of_string : string -> type_

Deserialize JSON data of type type_.

val write_type_argument : Stdlib.Buffer.t -> type_argument -> unit

Output a JSON value of type type_argument.

val string_of_type_argument : ?len:int -> type_argument -> string

Serialize a value of type type_argument into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_argument : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_argument

Input JSON data of type type_argument.

val type_argument_of_string : string -> type_argument

Deserialize JSON data of type type_argument.

val write_type_arguments : Stdlib.Buffer.t -> type_arguments -> unit

Output a JSON value of type type_arguments.

val string_of_type_arguments : ?len:int -> type_arguments -> string

Serialize a value of type type_arguments into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_arguments : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_arguments

Input JSON data of type type_arguments.

val type_arguments_of_string : string -> type_arguments

Deserialize JSON data of type type_arguments.

val write_type_definition : Stdlib.Buffer.t -> type_definition -> unit

Output a JSON value of type type_definition.

val string_of_type_definition : ?len:int -> type_definition -> string

Serialize a value of type type_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_definition

Input JSON data of type type_definition.

val type_definition_of_string : string -> type_definition

Deserialize JSON data of type type_definition.

val write_type_definition_kind : Stdlib.Buffer.t -> type_definition_kind -> unit

Output a JSON value of type type_definition_kind.

val string_of_type_definition_kind : ?len:int -> type_definition_kind -> string

Serialize a value of type type_definition_kind into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_definition_kind : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_definition_kind

Input JSON data of type type_definition_kind.

val type_definition_kind_of_string : string -> type_definition_kind

Deserialize JSON data of type type_definition_kind.

val write_type_parameter : Stdlib.Buffer.t -> type_parameter -> unit

Output a JSON value of type type_parameter.

val string_of_type_parameter : ?len:int -> type_parameter -> string

Serialize a value of type type_parameter into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_parameter : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_parameter

Input JSON data of type type_parameter.

val type_parameter_of_string : string -> type_parameter

Deserialize JSON data of type type_parameter.

val write_type_parameter_classic : Stdlib.Buffer.t -> type_parameter_classic -> unit

Output a JSON value of type type_parameter_classic.

val string_of_type_parameter_classic : ?len:int -> type_parameter_classic -> string

Serialize a value of type type_parameter_classic into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_parameter_classic : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_parameter_classic

Input JSON data of type type_parameter_classic.

val type_parameter_classic_of_string : string -> type_parameter_classic

Deserialize JSON data of type type_parameter_classic.

val write_type_parameters : Stdlib.Buffer.t -> type_parameters -> unit

Output a JSON value of type type_parameters.

val string_of_type_parameters : ?len:int -> type_parameters -> string

Serialize a value of type type_parameters into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_type_parameters : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> type_parameters

Input JSON data of type type_parameters.

val type_parameters_of_string : string -> type_parameters

Deserialize JSON data of type type_parameters.

val write_variable_definition : Stdlib.Buffer.t -> variable_definition -> unit

Output a JSON value of type variable_definition.

val string_of_variable_definition : ?len:int -> variable_definition -> string

Serialize a value of type variable_definition into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_variable_definition : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> variable_definition

Input JSON data of type variable_definition.

val variable_definition_of_string : string -> variable_definition

Deserialize JSON data of type variable_definition.

val write_xml : Stdlib.Buffer.t -> xml -> unit

Output a JSON value of type xml.

val string_of_xml : ?len:int -> xml -> string

Serialize a value of type xml into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_xml : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> xml

Input JSON data of type xml.

val xml_of_string : string -> xml

Deserialize JSON data of type xml.

val write_xml_attr_value : Stdlib.Buffer.t -> xml_attr_value -> unit

Output a JSON value of type xml_attr_value.

val string_of_xml_attr_value : ?len:int -> xml_attr_value -> string

Serialize a value of type xml_attr_value into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_xml_attr_value : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> xml_attr_value

Input JSON data of type xml_attr_value.

val xml_attr_value_of_string : string -> xml_attr_value

Deserialize JSON data of type xml_attr_value.

val write_xml_attribute : Stdlib.Buffer.t -> xml_attribute -> unit

Output a JSON value of type xml_attribute.

val string_of_xml_attribute : ?len:int -> xml_attribute -> string

Serialize a value of type xml_attribute into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_xml_attribute : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> xml_attribute

Input JSON data of type xml_attribute.

val xml_attribute_of_string : string -> xml_attribute

Deserialize JSON data of type xml_attribute.

val write_xml_body : Stdlib.Buffer.t -> xml_body -> unit

Output a JSON value of type xml_body.

val string_of_xml_body : ?len:int -> xml_body -> string

Serialize a value of type xml_body into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_xml_body : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> xml_body

Input JSON data of type xml_body.

val xml_body_of_string : string -> xml_body

Deserialize JSON data of type xml_body.

val write_program : Stdlib.Buffer.t -> program -> unit

Output a JSON value of type program.

val string_of_program : ?len:int -> program -> string

Serialize a value of type program into a JSON string.

  • parameter len

    specifies the initial length of the buffer used internally. Default: 1024.

val read_program : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> program

Input JSON data of type program.

val program_of_string : string -> program

Deserialize JSON data of type program.