module U: sig
.. end
val list : ?start:string ->
?stop:string -> ?sep:string -> 'a CCParse.t -> 'a list CCParse.t
list p
parses a list of p
, with the OCaml conventions for
start token "", stop token "
" and separator ";".
Whitespace between items are skipped
val int : int CCParse.t
val word : string CCParse.t
non empty string of alpha num, start with alpha
val map : ('a -> 'b) -> 'a CCParse.t -> 'b CCParse.t
val map2 : ('a -> 'b -> 'c) -> 'a CCParse.t -> 'b CCParse.t -> 'c CCParse.t
val map3 : ('a -> 'b -> 'c -> 'd) ->
'a CCParse.t -> 'b CCParse.t -> 'c CCParse.t -> 'd CCParse.t
val pair : ?start:string ->
?stop:string ->
?sep:string -> 'a CCParse.t -> 'b CCParse.t -> ('a * 'b) CCParse.t
Parse a pair using OCaml whitespace conventions.
The default is "(a, b)".
Since 0.14
val triple : ?start:string ->
?stop:string ->
?sep:string ->
'a CCParse.t -> 'b CCParse.t -> 'c CCParse.t -> ('a * 'b * 'c) CCParse.t
Parse a triple using OCaml whitespace conventions.
The default is "(a, b, c)".
Since 0.14