src/HOL/ex/Commands.thy
changeset 69597 ff784d5a5bfb
parent 67096 e77f13a6a501
child 70308 7f568724d67e
     1.1 --- a/src/HOL/ex/Commands.thy	Sat Jan 05 17:00:43 2019 +0100
     1.2 +++ b/src/HOL/ex/Commands.thy	Sat Jan 05 17:24:33 2019 +0100
     1.3 @@ -15,7 +15,7 @@
     1.4  subsection \<open>Diagnostic command: no state change\<close>
     1.5  
     1.6  ML \<open>
     1.7 -  Outer_Syntax.command @{command_keyword print_test} "print term test"
     1.8 +  Outer_Syntax.command \<^command_keyword>\<open>print_test\<close> "print term test"
     1.9      (Parse.term >> (fn s => Toplevel.keep (fn st =>
    1.10        let
    1.11          val ctxt = Toplevel.context_of st;
    1.12 @@ -31,10 +31,10 @@
    1.13  subsection \<open>Old-style global theory declaration\<close>
    1.14  
    1.15  ML \<open>
    1.16 -  Outer_Syntax.command @{command_keyword global_test} "test constant declaration"
    1.17 +  Outer_Syntax.command \<^command_keyword>\<open>global_test\<close> "test constant declaration"
    1.18      (Parse.binding >> (fn b => Toplevel.theory (fn thy =>
    1.19        let
    1.20 -        val thy' = Sign.add_consts [(b, @{typ 'a}, NoSyn)] thy;
    1.21 +        val thy' = Sign.add_consts [(b, \<^typ>\<open>'a\<close>, NoSyn)] thy;
    1.22        in thy' end)));
    1.23  \<close>
    1.24  
    1.25 @@ -46,8 +46,8 @@
    1.26  subsection \<open>Local theory specification\<close>
    1.27  
    1.28  ML \<open>
    1.29 -  Outer_Syntax.local_theory @{command_keyword local_test} "test local definition"
    1.30 -    (Parse.binding -- (@{keyword "="} |-- Parse.term) >> (fn (b, s) => fn lthy =>
    1.31 +  Outer_Syntax.local_theory \<^command_keyword>\<open>local_test\<close> "test local definition"
    1.32 +    (Parse.binding -- (\<^keyword>\<open>=\<close> |-- Parse.term) >> (fn (b, s) => fn lthy =>
    1.33        let
    1.34          val t = Syntax.read_term lthy s;
    1.35          val (def, lthy') = Local_Theory.define ((b, NoSyn), ((Thm.def_binding b, []), t)) lthy;