src/Pure/Isar/isar_syn.ML
changeset 22088 4c53bb6e10e4
parent 21956 2cbee05b18a1
child 22117 505e040bdcdb
equal deleted inserted replaced
22087:a13299166175 22088:4c53bb6e10e4
   303 
   303 
   304 val method_setupP =
   304 val method_setupP =
   305   OuterSyntax.command "method_setup" "define proof method in ML" (K.tag_ml K.thy_decl)
   305   OuterSyntax.command "method_setup" "define proof method in ML" (K.tag_ml K.thy_decl)
   306     (((P.name -- P.!!! (P.$$$ "=" |-- P.text -- P.text) >> P.triple2))
   306     (((P.name -- P.!!! (P.$$$ "=" |-- P.text -- P.text) >> P.triple2))
   307       >> (Toplevel.theory o Method.method_setup));
   307       >> (Toplevel.theory o Method.method_setup));
       
   308 
       
   309 val declarationP =
       
   310   OuterSyntax.command "declaration" "generic ML declaration" (K.tag_ml K.thy_decl)
       
   311     (P.opt_locale_target -- P.text
       
   312     >> (fn (loc, txt) => Toplevel.local_theory loc (IsarCmd.declaration txt)));
   308 
   313 
   309 
   314 
   310 (* translation functions *)
   315 (* translation functions *)
   311 
   316 
   312 val trfun = P.opt_keyword "advanced" -- P.text;
   317 val trfun = P.opt_keyword "advanced" -- P.text;
   921   classesP, classrelP, defaultsortP, axclassP, typedeclP, typeabbrP,
   926   classesP, classrelP, defaultsortP, axclassP, typedeclP, typeabbrP,
   922   nontermP, aritiesP, judgmentP, constsP, finalconstsP, syntaxP,
   927   nontermP, aritiesP, judgmentP, constsP, finalconstsP, syntaxP,
   923   no_syntaxP, translationsP, no_translationsP, axiomsP, defsP,
   928   no_syntaxP, translationsP, no_translationsP, axiomsP, defsP,
   924   constdefsP, definitionP, abbreviationP, notationP, axiomatizationP,
   929   constdefsP, definitionP, abbreviationP, notationP, axiomatizationP,
   925   theoremsP, lemmasP, declareP, globalP, localP, hideP, useP, mlP,
   930   theoremsP, lemmasP, declareP, globalP, localP, hideP, useP, mlP,
   926   ml_commandP, ml_setupP, setupP, method_setupP,
   931   ml_commandP, ml_setupP, setupP, method_setupP, declarationP,
   927   parse_ast_translationP, parse_translationP, print_translationP,
   932   parse_ast_translationP, parse_translationP, print_translationP,
   928   typed_print_translationP, print_ast_translationP,
   933   typed_print_translationP, print_ast_translationP,
   929   token_translationP, oracleP, contextP, localeP,
   934   token_translationP, oracleP, contextP, localeP,
   930   (*proof commands*)
   935   (*proof commands*)
   931   theoremP, lemmaP, corollaryP, haveP, henceP, showP, thusP, fixP,
   936   theoremP, lemmaP, corollaryP, haveP, henceP, showP, thusP, fixP,