src/Pure/codegen.ML
changeset 24022 ab76c73b3b58
parent 23931 4d82207fb251
child 24166 7b28dc69bdbb
equal deleted inserted replaced
24021:491c68f40bc4 24022:ab76c73b3b58
  1181 val params =
  1181 val params =
  1182   [("size", P.nat >> (K o set_size)),
  1182   [("size", P.nat >> (K o set_size)),
  1183    ("iterations", P.nat >> (K o set_iterations)),
  1183    ("iterations", P.nat >> (K o set_iterations)),
  1184    ("default_type", P.typ >> set_default_type)];
  1184    ("default_type", P.typ >> set_default_type)];
  1185 
  1185 
  1186 val parse_test_params = P.short_ident :-- (fn s =>
  1186 val parse_test_params = P.short_ident :|-- (fn s =>
  1187   P.$$$ "=" |-- (AList.lookup (op =) params s |> the_default Scan.fail)) >> snd;
  1187   P.$$$ "=" |-- (AList.lookup (op =) params s |> the_default Scan.fail));
  1188 
  1188 
  1189 fun parse_tyinst xs =
  1189 fun parse_tyinst xs =
  1190   (P.type_ident --| P.$$$ "=" -- P.typ >> (fn (v, s) => fn thy =>
  1190   (P.type_ident --| P.$$$ "=" -- P.typ >> (fn (v, s) => fn thy =>
  1191     fn (x, ys) => (x, (v, Sign.read_typ thy s) :: ys))) xs;
  1191     fn (x, ys) => (x, (v, Sign.read_typ thy s) :: ys))) xs;
  1192 
  1192