Module Benl_types

module Benl_types: sig .. end

Ben-specific basic datatypes.


type field = string 

A field name

type regexp = string * Re.Pcre.regexp 

A pair of a PCRE regexp and its string representation (as parsed from configuration, used for pretty-printing).

type comparison = 
| Le
| Lt
| Eq
| Gt
| Ge
type expr = 
| Etrue
| Efalse
| EMatch of field * expr
| ENot of expr
| EAnd of expr * expr
| EOr of expr * expr
| ESource
| EList of expr list
| EString of string
| ERegexp of regexp
| EVersion of comparison * string
| EDep of string * comparison * string (*

The abstract syntax tree of configuration items.

*)
type config = expr Benl_core.StringMap.t 

The type of parsed configuration files. Configuration files are key-value pairs, where values have type expr.

type source = 
| File of string
| Stdin
| NoSource