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.139 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.138 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.137 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.136 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.135 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.134 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.133 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.132 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.131 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.130 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.129 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.128 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.127 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.126 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.125 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.124 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.123 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.122 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.121 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.120 tracks/ocaml/tools/test-generator/src/languages.ml