src/Pure/Thy/thy_parse.ML
changeset 1235 b4056a71eca2
parent 1027 651637377289
child 1249 2d1c27d1dac3
equal deleted inserted replaced
1234:56ee5cc35510 1235:b4056a71eca2
   413         \\n"
   413         \\n"
   414         ^ extxt ^ "\n\
   414         ^ extxt ^ "\n\
   415         \\n\
   415         \\n\
   416         \|> add_thyname " ^ quote thy_name ^ ";\n\
   416         \|> add_thyname " ^ quote thy_name ^ ";\n\
   417         \\n\
   417         \\n\
   418         \val () = store_theory (thy, " ^ quote thy_name ^ ");\n\
   418         \val _ = store_theory (thy, " ^ quote thy_name ^ ");\n\
   419         \\n\
   419         \\n\
   420         \\n"
   420         \\n"
   421         ^ postxt ^ "\n\
   421         ^ postxt ^ "\n\
   422         \\n\
   422         \\n\
   423         \end;\n\
   423         \end;\n\
   428         \structure " ^ thy_name ^ " =\n\
   428         \structure " ^ thy_name ^ " =\n\
   429         \struct\n\
   429         \struct\n\
   430         \\n\
   430         \\n\
   431         \val thy = thy\n\
   431         \val thy = thy\n\
   432         \\n\
   432         \\n\
   433         \val () = store_theory (thy, " ^ quote thy_name ^ ");\n\
   433         \val _ = store_theory (thy, " ^ quote thy_name ^ ");\n\
   434         \\n\
   434         \\n\
   435         \end;\n");
   435         \end;\n");
   436 
   436 
   437 fun theory_defn sectab tname =
   437 fun theory_defn sectab tname =
   438   header -- optional (extension sectab >> Some) None -- eof
   438   header -- optional (extension sectab >> Some) None -- eof