24 lines
441 B
OCaml
24 lines
441 B
OCaml
open Types
|
|
|
|
type prefix =
|
|
| No_prefix
|
|
| Server_prefix of string
|
|
| User_prefix of name * userinfo option
|
|
|
|
val prefix_string : prefix -> string
|
|
|
|
type t = {
|
|
prefix : prefix;
|
|
command : string;
|
|
params : string list;
|
|
trailing : bool;
|
|
}
|
|
|
|
val pp : Format.formatter -> t -> unit
|
|
|
|
val make : ?prefix:prefix -> ?always_trailing:bool ->
|
|
string -> string list -> t
|
|
|
|
val write : Buffer.t -> t -> unit
|
|
val parse : string -> t list * string
|