package wcs-lib

  1. Overview
  2. Docs

Source file wcs_aux.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
type selector =
  | Goto_user_input
  | Goto_condition
  | Goto_body

let selector_wrap s =
  begin match s with
  | "user_input" | "client" -> Goto_user_input
  | "condition" -> Goto_condition
  | "body" -> Goto_body
  | _ -> Log.error "Wcs_aux" (Some Goto_user_input) ("bad selector: "^s)
  end

let selector_unwrap s =
  begin match s with
  | Goto_user_input -> "user_input"
  | Goto_condition -> "condition"
  | Goto_body -> "body"
  end
OCaml

Innovation. Community. Security.