src/Pure/Isar/isar_syn.ML
changeset 15432 f04179b1454b
parent 15237 250e9be7a09d
child 15531 08c8dad8e399
equal deleted inserted replaced
15431:6f4959ba7664 15432:f04179b1454b
     7 
     7 
     8 signature ISAR_SYN =
     8 signature ISAR_SYN =
     9 sig
     9 sig
    10   val keywords: string list
    10   val keywords: string list
    11   val parsers: OuterSyntax.parser list
    11   val parsers: OuterSyntax.parser list
       
    12   val hidden_commands: string list
    12 end;
    13 end;
    13 
    14 
    14 structure IsarSyn: ISAR_SYN =
    15 structure IsarSyn: ISAR_SYN =
    15 struct
    16 struct
    16 
    17 
   796   cdP, pwdP, use_thyP, use_thy_onlyP, update_thyP, update_thy_onlyP,
   797   cdP, pwdP, use_thyP, use_thy_onlyP, update_thyP, update_thy_onlyP,
   797   touch_thyP, touch_all_thysP, touch_child_thysP, remove_thyP,
   798   touch_thyP, touch_all_thysP, touch_child_thysP, remove_thyP,
   798   kill_thyP, display_draftsP, print_draftsP, prP, disable_prP,
   799   kill_thyP, display_draftsP, print_draftsP, prP, disable_prP,
   799   enable_prP, commitP, quitP, exitP, init_toplevelP, welcomeP];
   800   enable_prP, commitP, quitP, exitP, init_toplevelP, welcomeP];
   800 
   801 
       
   802 (*these commands can be hidden in LaTeX output*)
       
   803 
       
   804 val hidden_commands = [
       
   805   "use", "ML", "ML_command", "ML_setup", "setup", "method_setup",
       
   806   "parse_ast_translation", "parse_translation", "print_translation",
       
   807   "typed_print_translation", "print_ast_translation", "token_translation"];
       
   808 
   801 end;
   809 end;
   802 
   810 
   803 
   811 
   804 (*install the Pure outer syntax*)
   812 (*install the Pure outer syntax*)
   805 OuterSyntax.add_keywords IsarSyn.keywords;
   813 OuterSyntax.add_keywords IsarSyn.keywords;
   806 OuterSyntax.add_parsers IsarSyn.parsers;
   814 OuterSyntax.add_parsers IsarSyn.parsers;
       
   815 IsarOutput.add_hidden_commands IsarSyn.hidden_commands;