src/Pure/Thy/thy_parse.ML
changeset 759 e0b172d01c37
parent 710 53fef17a729a
child 777 c007eba368b7
equal deleted inserted replaced
758:c2b210bda710 759:e0b172d01c37
   413         \\n\
   413         \\n\
   414         \\n"
   414         \\n"
   415         ^ postxt ^ "\n\
   415         ^ postxt ^ "\n\
   416         \\n\
   416         \\n\
   417         \end;\n\
   417         \end;\n\
   418         \end;\n"
   418         \end;\n\n\
       
   419         \store_theory (" ^ thy_name ^ ".thy, " ^ quote thy_name ^ ");\n"
   419     | None =>
   420     | None =>
   420         "val thy = " ^ old_thys ^ " false;\n\n\
   421         "val thy = " ^ old_thys ^ " false;\n\n\
   421         \structure " ^ thy_name ^ " =\n\
   422         \structure " ^ thy_name ^ " =\n\
   422         \struct\n\
   423         \struct\n\
   423         \\n\
   424         \\n\
   424         \val thy = thy\n\
   425         \val thy = thy\n\
   425         \\n\
   426         \\n\
   426         \end;\n");
   427         \end;\n\n\
       
   428         \store_theory (" ^ thy_name ^ ".thy, " ^ quote thy_name ^ ");\n");
   427 
   429 
   428 fun theory_defn sectab tname =
   430 fun theory_defn sectab tname =
   429   header -- optional (extension sectab >> Some) None -- eof
   431   header -- optional (extension sectab >> Some) None -- eof
   430   >> (mk_structure tname o #1);
   432   >> (mk_structure tname o #1);
   431 
   433 
   466   axm_section "axclass" "|> AxClass.add_axclass" axclass_decl,
   468   axm_section "axclass" "|> AxClass.add_axclass" axclass_decl,
   467   ("instance", instance_decl)];
   469   ("instance", instance_decl)];
   468 
   470 
   469 
   471 
   470 end;
   472 end;
   471