src/HOL/Tools/Predicate_Compile/code_prolog.ML
changeset 46949 94aa7b81bcf6
parent 46614 165886a4fe64
child 46961 5c6955f487e5
equal deleted inserted replaced
46948:aae5566d6756 46949:94aa7b81bcf6
  1000 
  1000 
  1001 
  1001 
  1002 (* renewing the values command for Prolog queries *)
  1002 (* renewing the values command for Prolog queries *)
  1003 
  1003 
  1004 val opt_print_modes =
  1004 val opt_print_modes =
  1005   Scan.optional (Parse.$$$ "(" |-- Parse.!!! (Scan.repeat1 Parse.xname --| Parse.$$$ ")")) [];
  1005   Scan.optional (@{keyword "("} |-- Parse.!!! (Scan.repeat1 Parse.xname --| @{keyword ")"})) [];
  1006 
  1006 
  1007 val _ = Outer_Syntax.improper_command "values" "enumerate and print comprehensions" Keyword.diag
  1007 val _ = Outer_Syntax.improper_command "values" "enumerate and print comprehensions" Keyword.diag
  1008   (opt_print_modes -- Scan.optional (Parse.nat >> SOME) NONE -- Parse.term
  1008   (opt_print_modes -- Scan.optional (Parse.nat >> SOME) NONE -- Parse.term
  1009    >> (fn ((print_modes, soln), t) => Toplevel.keep
  1009    >> (fn ((print_modes, soln), t) => Toplevel.keep
  1010         (values_cmd print_modes soln t))); (*FIXME does not preserve the previous functionality*)
  1010         (values_cmd print_modes soln t))); (*FIXME does not preserve the previous functionality*)