Sha256: 1e9a47d03a5d38fb27eee474d8795a8e1846bf9b910a80d04c2fabe5d1d91260

Contents?: true

Size: 1.02 KB

Versions: 159

Compression:

Stored size: 1.02 KB

Contents

open Core
open Yojson.Basic
include Ocaml_special_cases 
include Purescript_special_cases 

type language_config = {
  template_file_name: string;
  default_base_folder: string;
  test_start_marker: string;
  test_end_marker: string;
  version_printer: string -> string;
  edit_parameters: slug: string -> (string * json) list -> (string * string) list;
}

let default_language_config = function
| "ocaml" -> {
    template_file_name = "test.ml"; 
    default_base_folder = "../..";
    test_start_marker = "(* TEST"; 
    test_end_marker = "END TEST";
    version_printer = (fun v -> "(* Test/exercise version: \"" ^ v ^ "\" *)\n\n");
    edit_parameters = ocaml_edit_parameters
    }
| "purescript" ->  {
    template_file_name = "Main.purs"; 
    default_base_folder = "../../../xpurescript";
    test_start_marker = "--TEST"; 
    test_end_marker = "--END TEST";
    version_printer = (fun v -> "-- Test/exercise version: \"" ^ v ^ "\"\n\n");
    edit_parameters = purescript_edit_parameters
    }
| x -> failwith @@ "unknown language " ^ x

Version data entries

159 entries across 159 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.179 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.178 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.177 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.176 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.175 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.174 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.173 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.172 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.171 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.170 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.169 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.167 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.166 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.165 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.164 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.163 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.162 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.161 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.160 tracks/ocaml/tools/test-generator/src/languages.ml