indexvar_ast_tr (for \<index> placeholder);
authorwenzelm
Fri, 09 Nov 2001 00:18:23 +0100
changeset 12122 7f8d88ed4f21
parent 12121 55b71be171c5
child 12123 739eba13e2cd
indexvar_ast_tr (for \<index> placeholder);
src/Pure/Syntax/syn_trans.ML
--- a/src/Pure/Syntax/syn_trans.ML	Fri Nov 09 00:17:52 2001 +0100
+++ b/src/Pure/Syntax/syn_trans.ML	Fri Nov 09 00:18:23 2001 +0100
@@ -161,6 +161,12 @@
   in (quoteN, tr) end;
 
 
+(* index variable *)
+
+fun indexvar_ast_tr [] = Ast.Variable "some_index"
+  | indexvar_ast_tr asts = raise Ast.AST ("indexvar_ast_tr", asts);
+
+
 
 (** print (ast) translations **)
 
@@ -344,7 +350,8 @@
 
 val pure_trfuns =
  ([("_constify", constify_ast_tr), ("_appl", appl_ast_tr), ("_applC", applC_ast_tr),
-   ("_lambda", lambda_ast_tr), ("_idtyp", idtyp_ast_tr), ("_bigimpl", bigimpl_ast_tr)],
+   ("_lambda", lambda_ast_tr), ("_idtyp", idtyp_ast_tr), ("_bigimpl", bigimpl_ast_tr),
+   ("_indexvar", indexvar_ast_tr)],
   [("_abs", abs_tr), ("_aprop", aprop_tr), ("_ofclass", ofclass_tr),
    ("_TYPE", type_tr), ("_DDDOT", dddot_tr), ("_K", k_tr)],
   []: (string * (term list -> term)) list,