src/ZF/Tools/typechk.ML
changeset 64556 851ae0e7b09c
parent 61268 abe08fb15a12
child 67645 5e0c81750441
equal deleted inserted replaced
64555:628b271c5b8b 64556:851ae0e7b09c
   118   Theory.setup
   118   Theory.setup
   119    (Attrib.setup @{binding TC} (Attrib.add_del TC_add TC_del)
   119    (Attrib.setup @{binding TC} (Attrib.add_del TC_add TC_del)
   120       "declaration of type-checking rule" #>
   120       "declaration of type-checking rule" #>
   121     Method.setup @{binding typecheck}
   121     Method.setup @{binding typecheck}
   122       (Method.sections
   122       (Method.sections
   123         [Args.add -- Args.colon >> K (Method.modifier TC_add @{here}),
   123         [Args.add -- Args.colon >> K (Method.modifier TC_add \<^here>),
   124          Args.del -- Args.colon >> K (Method.modifier TC_del @{here})]
   124          Args.del -- Args.colon >> K (Method.modifier TC_del \<^here>)]
   125         >> K (fn ctxt => SIMPLE_METHOD (CHANGED (typecheck_tac ctxt))))
   125         >> K (fn ctxt => SIMPLE_METHOD (CHANGED (typecheck_tac ctxt))))
   126       "ZF type-checking");
   126       "ZF type-checking");
   127 
   127 
   128 val _ =
   128 val _ =
   129   Outer_Syntax.command @{command_keyword print_tcset} "print context of ZF typecheck"
   129   Outer_Syntax.command @{command_keyword print_tcset} "print context of ZF typecheck"