src/HOL/Tools/Lifting/lifting_setup.ML
changeset 50231 81a067b188b8
parent 50227 01d545993e8c
parent 50214 67fb9a168d10
child 50288 986598b0efd1
equal deleted inserted replaced
50230:79773c44e57b 50231:81a067b188b8
   307 val opt_gen_code =
   307 val opt_gen_code =
   308   Scan.optional (@{keyword "("} |-- Parse.!!! ((Parse.reserved "no_code" >> K false) --| @{keyword ")"})) true
   308   Scan.optional (@{keyword "("} |-- Parse.!!! ((Parse.reserved "no_code" >> K false) --| @{keyword ")"})) true
   309 
   309 
   310 val _ = 
   310 val _ = 
   311   Outer_Syntax.local_theory @{command_spec "setup_lifting"}
   311   Outer_Syntax.local_theory @{command_spec "setup_lifting"}
   312     "Setup lifting infrastructure" 
   312     "setup lifting infrastructure" 
   313       (opt_gen_code -- Parse_Spec.xthm -- Scan.option Parse_Spec.xthm >> 
   313       (opt_gen_code -- Parse_Spec.xthm -- Scan.option Parse_Spec.xthm >> 
   314         (fn ((gen_code, xthm), opt_reflp_xthm) => setup_lifting_cmd gen_code xthm opt_reflp_xthm))
   314         (fn ((gen_code, xthm), opt_reflp_xthm) => setup_lifting_cmd gen_code xthm opt_reflp_xthm))
   315 end;
   315 end;