package calculon

  1. Overview
  2. Docs

Module Calculon_extras.IrclogSource

Small Parser for IRC Logs

Sourcetype 'a sequence = ('a -> unit) -> unit
Sourcetype log_record = {
  1. author : string;
  2. time : string;
  3. msg : string;
}

One message in a IRC log

Sourceval re_irssi : Re.re

Irssi logs

Sourceval re_weechat : Re.re

Weechat logs

Sourcetype fmt =
  1. | Irssi
  2. | Weechat
Sourceval fmt_of_string : string -> fmt
Sourceval string_of_fmt : fmt -> string
Sourceval fmt_l : string list
Sourceval parse_record : fmt -> string -> log_record option

Parse one line of log

Sourceval string_of_record : log_record -> string

Print record

Sourceval pp_record : log_record CCFormat.printer
Sourceval iter_file : fmt -> string -> log_record sequence
Sourceval iter_dir : fmt -> string -> (string * log_record) sequence
Sourceval iter_file_or_dir : fmt -> string -> log_record sequence
Sourceval norm_author : string -> string

Normalize author's name

OCaml

Innovation. Community. Security.