src/HOL/Tools/value_command.ML
changeset 67149 e61557884799
parent 66345 882abe912da9
child 67330 2505cabfc515
--- a/src/HOL/Tools/value_command.ML	Wed Dec 06 19:34:59 2017 +0100
+++ b/src/HOL/Tools/value_command.ML	Wed Dec 06 20:43:09 2017 +0100
@@ -62,18 +62,18 @@
   in Pretty.writeln p end;
 
 val opt_modes =
-  Scan.optional (@{keyword "("} |-- Parse.!!! (Scan.repeat1 Parse.name --| @{keyword ")"})) [];
+  Scan.optional (\<^keyword>\<open>(\<close> |-- Parse.!!! (Scan.repeat1 Parse.name --| \<^keyword>\<open>)\<close>)) [];
 
 val opt_evaluator =
-  Scan.option (@{keyword "["} |-- Parse.name --| @{keyword "]"})
+  Scan.option (\<^keyword>\<open>[\<close> |-- Parse.name --| \<^keyword>\<open>]\<close>)
   
 val _ =
-  Outer_Syntax.command @{command_keyword value} "evaluate and print term"
+  Outer_Syntax.command \<^command_keyword>\<open>value\<close> "evaluate and print term"
     (opt_evaluator -- opt_modes -- Parse.term
       >> (fn ((some_name, modes), t) => Toplevel.keep (value_cmd some_name modes t)));
 
 val _ = Theory.setup
-  (Thy_Output.antiquotation @{binding value}
+  (Thy_Output.antiquotation \<^binding>\<open>value\<close>
     (Scan.lift opt_evaluator -- Term_Style.parse -- Args.term)
     (fn {source, context, ...} => fn ((some_name, style), t) => Thy_Output.output context
       (Thy_Output.maybe_pretty_source Thy_Output.pretty_term context source