put parentheses around non-trivial metis call
authorblanchet
Thu, 28 Jul 2011 16:32:48 +0200
changeset 44002 ae53f1304ad5
parent 44001 2b75760fa75e
child 44003 0a0ee31ec20a
put parentheses around non-trivial metis call
src/HOL/Tools/ATP/atp_reconstruct.ML
--- a/src/HOL/Tools/ATP/atp_reconstruct.ML	Thu Jul 28 16:32:39 2011 +0200
+++ b/src/HOL/Tools/ATP/atp_reconstruct.ML	Thu Jul 28 16:32:48 2011 +0200
@@ -206,7 +206,8 @@
   | apply_on_subgoal settings 1 _ = set_settings settings ^ "apply "
   | apply_on_subgoal settings i n =
     "prefer " ^ string_of_int i ^ " " ^ apply_on_subgoal settings 1 n
-fun command_call name [] = name
+fun command_call name [] =
+    name |> not (Lexicon.is_identifier name) ? enclose "(" ")"
   | command_call name args = "(" ^ name ^ " " ^ space_implode " " args ^ ")"
 fun try_command_line banner time command =
   banner ^ ": " ^ Markup.markup Markup.sendback command ^ show_time time ^ "."