src/Pure/Isar/isar_syn.ML
changeset 7931 fa6fec415492
parent 7908 0b191b36ad97
child 8097 80a3c30d088b
     1.1 --- a/src/Pure/Isar/isar_syn.ML	Tue Oct 26 14:34:50 1999 +0200
     1.2 +++ b/src/Pure/Isar/isar_syn.ML	Tue Oct 26 14:35:10 1999 +0200
     1.3 @@ -562,6 +562,10 @@
     1.4    OuterSyntax.improper_command "remove_thy" "remove theory from loader database" K.diag
     1.5      (P.name >> IsarCmd.remove_thy);
     1.6  
     1.7 +val kill_thyP =
     1.8 +  OuterSyntax.improper_command "kill_thy" "kill theory -- try to remove from loader database"
     1.9 +    K.diag (P.name >> IsarCmd.kill_thy);
    1.10 +
    1.11  val prP =
    1.12    OuterSyntax.improper_command "pr" "print current toplevel state" K.diag
    1.13      (Scan.succeed (Toplevel.print o Toplevel.imperative (fn () => Toplevel.quiet := false)));
    1.14 @@ -574,16 +578,13 @@
    1.15    OuterSyntax.improper_command "enable_pr" "enable printing of toplevel state" K.diag
    1.16      (Scan.succeed (Toplevel.imperative (fn () => Toplevel.quiet := false)));
    1.17  
    1.18 -
    1.19 -val opt_unit = Scan.optional (P.$$$ "(" -- P.$$$ ")" >> (K ())) ();
    1.20 -
    1.21  val commitP =
    1.22    OuterSyntax.improper_command "commit" "commit current session to ML database" K.diag
    1.23 -    (opt_unit >> (K IsarCmd.use_commit));
    1.24 +    (P.opt_unit >> (K IsarCmd.use_commit));
    1.25  
    1.26  val quitP =
    1.27    OuterSyntax.improper_command "quit" "quit Isabelle" K.control
    1.28 -    (opt_unit >> (K IsarCmd.quit));
    1.29 +    (P.opt_unit >> (K IsarCmd.quit));
    1.30  
    1.31  val exitP =
    1.32    OuterSyntax.improper_command "exit" "exit Isar loop" K.control
    1.33 @@ -636,9 +637,9 @@
    1.34    print_propP, print_termP, print_typeP,
    1.35    (*system commands*)
    1.36    cdP, pwdP, use_thyP, use_thy_onlyP, update_thyP, update_thy_onlyP,
    1.37 -  touch_thyP, touch_all_thysP, touch_child_thysP, remove_thyP, prP,
    1.38 -  disable_prP, enable_prP, commitP, quitP, exitP, init_toplevelP,
    1.39 -  welcomeP];
    1.40 +  touch_thyP, touch_all_thysP, touch_child_thysP, remove_thyP,
    1.41 +  kill_thyP, prP, disable_prP, enable_prP, commitP, quitP, exitP,
    1.42 +  init_toplevelP, welcomeP];
    1.43  
    1.44  
    1.45  end;