src/Pure/codegen.ML
changeset 18664 ad7ae7870427
parent 18320 ce523820ff75
child 18679 cf9f1584431a
equal deleted inserted replaced
18663:8474756e4cbf 18664:ad7ae7870427
  1193   (Scan.option (P.$$$ "[" |-- P.list1
  1193   (Scan.option (P.$$$ "[" |-- P.list1
  1194     (   parse_test_params >> (fn f => fn thy => apfst (f thy))
  1194     (   parse_test_params >> (fn f => fn thy => apfst (f thy))
  1195      || parse_tyinst) --| P.$$$ "]") -- Scan.optional P.nat 1 >>
  1195      || parse_tyinst) --| P.$$$ "]") -- Scan.optional P.nat 1 >>
  1196     (fn (ps, g) => Toplevel.keep (fn st =>
  1196     (fn (ps, g) => Toplevel.keep (fn st =>
  1197       test_goal (app (getOpt (Option.map
  1197       test_goal (app (getOpt (Option.map
  1198           (map (fn f => f (Toplevel.sign_of st))) ps, []))
  1198           (map (fn f => f (Toplevel.theory_of st))) ps, []))
  1199         (get_test_params (Toplevel.theory_of st), [])) g st)));
  1199         (get_test_params (Toplevel.theory_of st), [])) g st)));
  1200 
  1200 
  1201 val valueP =
  1201 val valueP =
  1202   OuterSyntax.improper_command "value" "read, evaluate and print term" K.diag
  1202   OuterSyntax.improper_command "value" "read, evaluate and print term" K.diag
  1203     (P.term >> (Toplevel.no_timing oo print_evaluated_term));
  1203     (P.term >> (Toplevel.no_timing oo print_evaluated_term));