piqilib
The Piqi library -- runtime support for multi-format Protobuf/JSON/XML/Piq data serialization and conversion
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library piqilib
module C = Piqi_common
module Utf8 = Piqi_utf8
val classify_string : string -> string_type
val type_of_char : int -> string_type
val make_char : char -> string_type * int
val escaped_lexeme : Sedlexing.lexbuf -> string
val parse_string_escape : Sedlexing.lexbuf -> string_type * int
val parse_string_literal : string -> string_type * string
val add_ascii_char : Buffer.t -> int -> unit
type token =
| Lpar |
| Rpar |
| Lbr |
| Rbr |
| Star |
| Comma |
| String of string_type * string * string |
| Word of string |
| Name of string |
| Text of string |
| EOF |
| Raw_string of string |
type buf = {
lexbuf : Sedlexing.lexbuf; |
mutable lcount : int; |
mutable lstart : int; |
mutable col : int; |
mutable next_token : token option; |
}
val make_buf : Sedlexing.lexbuf -> buf
val update_line_counter : buf -> unit
val get_column : buf -> int
val update_column : buf -> unit
val error_location : buf -> int * int
val location : buf -> int * int
val token0 : buf -> Sedlexing.lexbuf -> token
exception Error of string * loc
val error : buf -> string -> 'a
val init_from_string : string -> buf
val init_from_channel : in_channel -> buf
val tokenize_string : string -> token list