[go: up one dir, main page]

File: configfile.mli

package info (click to toggle)
spamoracle 1.4-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 248 kB
  • ctags: 243
  • sloc: ml: 1,198; makefile: 138; sh: 74
file content (15 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(* Parsing configuration files *)

type value =
  | Bool of bool ref
  | String of string ref
  | Int of int ref
  | Float of float ref
  | Regexp of Str.regexp ref
  | OptBool of bool option ref
  | OptString of string option ref
  | OptInt of int option ref
  | OptFloat of float option ref
  | OptRegexp of Str.regexp option ref

val parse: (string * value) list -> string -> (int * string) list