src/Pure/Isar/isar_syn.ML
changeset 8723 c7de3c2ed7a9
parent 8681 957a5fe9b212
child 8807 0046be1769f9
equal deleted inserted replaced
8722:f745b34dcde3 8723:c7de3c2ed7a9
   190 
   190 
   191 (* name space entry path *)
   191 (* name space entry path *)
   192 
   192 
   193 val globalP =
   193 val globalP =
   194   OuterSyntax.command "global" "disable prefixing of theory name" K.thy_decl
   194   OuterSyntax.command "global" "disable prefixing of theory name" K.thy_decl
   195     (Scan.succeed (Toplevel.theory PureThy.global_path));
   195     (P.marg_comment >> (Toplevel.theory o IsarThy.global_path));
   196 
   196 
   197 val localP =
   197 val localP =
   198   OuterSyntax.command "local" "enable prefixing of theory name" K.thy_decl
   198   OuterSyntax.command "local" "enable prefixing of theory name" K.thy_decl
   199     (Scan.succeed (Toplevel.theory PureThy.local_path));
   199     (P.marg_comment >> (Toplevel.theory o IsarThy.local_path));
       
   200 
       
   201 val hideP =
       
   202   OuterSyntax.command "hide" "hide names from given name space" K.thy_decl
       
   203     (P.name -- Scan.repeat1 P.xname -- P.marg_comment >> (Toplevel.theory o IsarThy.hide_space));
   200 
   204 
   201 
   205 
   202 (* use ML text *)
   206 (* use ML text *)
   203 
   207 
   204 val useP =
   208 val useP =
   634   headerP, chapterP, sectionP, subsectionP, subsubsectionP, textP,
   638   headerP, chapterP, sectionP, subsectionP, subsubsectionP, textP,
   635   text_rawP, sectP, subsectP, subsubsectP, txtP, txt_rawP,
   639   text_rawP, sectP, subsectP, subsubsectP, txtP, txt_rawP,
   636   (*theory sections*)
   640   (*theory sections*)
   637   classesP, classrelP, defaultsortP, typedeclP, typeabbrP, nontermP,
   641   classesP, classrelP, defaultsortP, typedeclP, typeabbrP, nontermP,
   638   aritiesP, judgmentP, constsP, syntaxP, translationsP, axiomsP,
   642   aritiesP, judgmentP, constsP, syntaxP, translationsP, axiomsP,
   639   defsP, constdefsP, theoremsP, lemmasP, globalP, localP, useP, mlP,
   643   defsP, constdefsP, theoremsP, lemmasP, globalP, localP, hideP, useP,
   640   ml_commandP, ml_setupP, setupP, parse_ast_translationP,
   644   mlP, ml_commandP, ml_setupP, setupP, parse_ast_translationP,
   641   parse_translationP, print_translationP, typed_print_translationP,
   645   parse_translationP, print_translationP, typed_print_translationP,
   642   print_ast_translationP, token_translationP, oracleP,
   646   print_ast_translationP, token_translationP, oracleP,
   643   (*proof commands*)
   647   (*proof commands*)
   644   theoremP, lemmaP, showP, haveP, thusP, henceP, assumeP, presumeP,
   648   theoremP, lemmaP, showP, haveP, thusP, henceP, assumeP, presumeP,
   645   defP, fixP, letP, caseP, thenP, fromP, withP, noteP, beginP, endP,
   649   defP, fixP, letP, caseP, thenP, fromP, withP, noteP, beginP, endP,