src/Pure/Thy/ROOT.ML
author clasohm
Mon, 20 Jun 1994 12:13:08 +0200
changeset 431 da3d07d4349b
parent 413 2a1554524ad5
child 1078 e57beb974dd7
permissions -rw-r--r--
parse.ML and scan.ML are now replaced by thy_parse.ML and thy_scan.ML

(*  Title:      Pure/Thy/ROOT.ML
    ID:         $Id$
    Author:     Sonia Mahjoub and Tobias Nipkow and
                Markus Wenzel and Carsten Clasohm, TU Muenchen

This file builds the theory parser and autoloading system.
*)

use "thy_scan.ML";
use "thy_parse.ML";

structure ThyScan = ThyScanFun(Scanner);
structure ThyParse = ThyParseFun(structure Symtab = Symtab
  and ThyScan = ThyScan);

use "thy_syn.ML";
use "thy_read.ML";

structure ThySyn = ThySynFun(val user_keywords = [] and user_sections = []);
structure Readthy = ReadthyFUN(structure ThySyn = ThySyn);
open Readthy;

fun init_thy_reader () =
  use_string
   ["structure Readthy = ReadthyFUN(structure ThySyn = ThySyn);",
    "Readthy.loaded_thys := ! loaded_thys;",
    "open Readthy;"];