src/Pure/Syntax/ROOT.ML
author clasohm
Fri, 22 Apr 1994 12:43:53 +0200
changeset 330 2fda15dd1e0f
parent 258 e540b7d4ecb1
child 392 674d878719bd
permissions -rw-r--r--
changed the way a grammar is generated to allow the new parser to work; also made a lot of changes in parser.ML and minor ones elsewhere

(*  Title:      Pure/Syntax/ROOT.ML
    ID:         $Id$
    Author:     Tobias Nipkow and Markus Wenzel, TU Muenchen

This file builds the syntax module.
*)

use "pretty.ML";
use "lexicon.ML";
use "ast.ML";
use "syn_ext.ML";
use "parser.ML";
(*use "earley0A.ML";*)
use "type_ext.ML";
use "sextension.ML";
use "printer.ML";
use "syntax.ML";

structure Pretty = PrettyFun();
structure Lexicon = LexiconFun();
structure Scanner: SCANNER = Lexicon;
structure Ast = AstFun(Pretty);
structure SynExt = SynExtFun(structure Lexicon = Lexicon and Ast = Ast);
structure Parser = ParserFun(structure Symtab = Symtab and Lexicon = Lexicon
  and SynExt = SynExt);
(*structure Earley = EarleyFun(structure Symtab = Symtab and Lexicon = Lexicon
  and SynExt = SynExt);*)
structure TypeExt = TypeExtFun(structure Lexicon = Lexicon and SynExt = SynExt);
structure SExtension = SExtensionFun(Parser);
structure Printer = PrinterFun(structure Symtab = Symtab and TypeExt = TypeExt
  and SExtension = SExtension);
structure Syntax = SyntaxFun(structure Symtab = Symtab and TypeExt = TypeExt
  and SExtension = SExtension and Printer = Printer);
structure BasicSyntax: BASIC_SYNTAX = Syntax;