package boltzgen

  1. Overview
  2. Docs

Module Boltzgen_runtime.Question_typeSource

Sourcetype qcm =
  1. | A
  2. | B
  3. | C
  4. | D
Sourceval string_of_qcm : qcm -> string
Sourceval qcm_of_string : string -> qcm
Sourceval qcm_of_int : int -> qcm
Sourcetype qlist = int list
Sourceval qlist_of_string : string -> qlist
Sourceval canonize_qlist : qlist -> qlist
Sourceval iter_hash : int -> int -> int
Sourceval hash_string : string -> int
Sourcetype question_value = {
  1. text : string;
  2. proposed_answer : string array;
  3. rtype : Type.compo_type;
  4. answer : string;
  5. test_effort : int;
  6. test_max : int;
}
Sourcetype question_type = {
  1. text : string;
  2. answer : string;
}
Sourcetype question =
  1. | Value of question_value
  2. | Type of question_type
Sourcetype question_bank = {
  1. questions : question array;
  2. digest : Digest.t;
  3. shuffle : string option;
}
Sourceval mkqcm : string -> string list -> qcm -> question
Sourceval mkfun : ?test_effort:int -> ?test_max:int -> string -> string -> string -> string list -> question
Sourceval mkdeftype : string -> string -> question
Sourceval shuffle : string -> question_bank -> question_bank
Sourceval save_qbank : string -> question_bank -> unit
Sourceval load_qbank : string -> question_bank