package starpath

  1. Overview
  2. Docs

Module Starpath.MakeSource

Parameters

module Token : Token
module Pos : Pos

Signature

Sourcetype token = Token.t
Sourcetype pos = Pos.t
Sourcetype pos0_arg = Pos.pos0_arg
Sourcetype parse_error = {
  1. pos : pos;
  2. expected : string list;
  3. actual : string;
}
Sourceval string_of_parse_error : parse_error -> string
Sourcetype 'a t
Sourceval parse : pos0_arg -> (pos * token) Seq.t -> 'a t -> ('a, parse_error) result
Sourceval (>>|) : 'a t -> ('a -> 'b) -> 'b t
Sourceval (>>=) : 'a t -> ('a -> 'b t) -> 'b t
Sourceval (<|>) : 'a t -> 'a t -> 'a t
Sourceval (<*) : 'a t -> 'b t -> 'a t
Sourceval (*>) : 'a t -> 'b t -> 'b t
Sourceval (@>) : 'a t -> 'b t -> 'b t
Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t
Sourceval (let*) : 'a t -> ('a -> 'b t) -> 'b t
Sourceval eof : unit t
Sourceval fail : parse_error -> 'a t
Sourceval fix : ('a t -> 'a t) -> 'a t
Sourceval optional : 'a t -> 'a option t
Sourceval optional_or : 'a t -> default:'a -> 'a t
Sourceval optional_or_else : 'a t -> default_f:(unit -> 'a) -> 'a t
Sourceval peek : token option t
Sourceval pos : 'a t -> (pos * 'a) t
Sourceval repeat : 'a t -> 'a list t
Sourceval repeat1 : 'a t -> 'a list t
Sourceval return : 'a -> 'a t
Sourceval return_at : pos -> 'a -> 'a t
Sourceval satisfy : expected:string list -> (token -> bool) -> token t
Sourceval satisfy_map : expected:string list -> (token -> 'a option) -> 'a t
Sourceval sep_by1 : _ t -> 'a t -> 'a list t
Sourceval sep_by : _ t -> 'a t -> 'a list t
Sourceval skip_while : (token -> bool) -> unit t
Sourceval take_while1 : expected:string list -> (token -> bool) -> token list t
Sourceval take_while : (token -> bool) -> token list t
Sourceval token_not : token -> token t
Sourceval token : token -> token t
OCaml

Innovation. Community. Security.