src/Pure/Syntax/syn_trans.ML
changeset 32786 f1ac4b515af9
parent 32738 15bb09ca0378
child 35145 f132a4fd8679
equal deleted inserted replaced
32785:ec5292653aff 32786:f1ac4b515af9
   153         | _ => raise Ast.AST ("bigimpl_ast_tr", asts))
   153         | _ => raise Ast.AST ("bigimpl_ast_tr", asts))
   154       in Ast.fold_ast_p "==>" (prems, concl) end
   154       in Ast.fold_ast_p "==>" (prems, concl) end
   155   | bigimpl_ast_tr (*"_bigimpl"*) asts = raise Ast.AST ("bigimpl_ast_tr", asts);
   155   | bigimpl_ast_tr (*"_bigimpl"*) asts = raise Ast.AST ("bigimpl_ast_tr", asts);
   156 
   156 
   157 
   157 
   158 (* meta conjunction *)
       
   159 
       
   160 fun conjunction_tr [t, u] = Lexicon.const "Pure.conjunction" $ t $ u
       
   161   | conjunction_tr ts = raise TERM ("conjunction_tr", ts);
       
   162 
       
   163 
       
   164 (* type/term reflection *)
   158 (* type/term reflection *)
   165 
   159 
   166 fun type_tr (*"_TYPE"*) [ty] = mk_type ty
   160 fun type_tr (*"_TYPE"*) [ty] = mk_type ty
   167   | type_tr (*"_TYPE"*) ts = raise TERM ("type_tr", ts);
   161   | type_tr (*"_TYPE"*) ts = raise TERM ("type_tr", ts);
   168 
       
   169 fun term_tr [t] = Lexicon.const "Pure.term" $ t
       
   170   | term_tr ts = raise TERM ("term_tr", ts);
       
   171 
   162 
   172 
   163 
   173 (* dddot *)
   164 (* dddot *)
   174 
   165 
   175 fun dddot_tr (*"_DDDOT"*) ts = Term.list_comb (Lexicon.var SynExt.dddot_indexname, ts);
   166 fun dddot_tr (*"_DDDOT"*) ts = Term.list_comb (Lexicon.var SynExt.dddot_indexname, ts);