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.119 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.118 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.117 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.116 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.115 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.114 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.113 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.111 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.110 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.109 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.108 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.107 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.106 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.105 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.104 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.103 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.102 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.101 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.100 tracks/ocaml/tools/test-generator/src/languages.ml
trackler-2.2.1.99 tracks/ocaml/tools/test-generator/src/languages.ml