0
|
1 |
(* Title: Pure/Thy/ROOT
|
|
2 |
ID: $Id$
|
|
3 |
Author: Sonia Mahjoub / Tobias Nipkow
|
|
4 |
Copyright 1992 TU Muenchen
|
|
5 |
|
|
6 |
This file builds the theory parser.
|
|
7 |
It assumes the standard Isabelle environment.
|
|
8 |
*)
|
|
9 |
|
|
10 |
use "scan.ML";
|
|
11 |
use "parse.ML";
|
|
12 |
use "syntax.ML";
|
|
13 |
use "read.ML";
|
|
14 |
|
|
15 |
|
|
16 |
structure Keyword =
|
|
17 |
struct
|
|
18 |
val alphas = ["classes", "default", "arities", "types",
|
|
19 |
"consts", "rules", "end", "rules", "mixfix",
|
|
20 |
"infixr", "infixl", "binder", "translations"]
|
|
21 |
|
|
22 |
val symbols = [",", "<", "{", "}", "(", ")", "(*", "*)",
|
|
23 |
"[", "]", "::", "=", "+", "==", "=>", "<="]
|
|
24 |
end;
|
|
25 |
|
|
26 |
structure Lex = LexicalFUN (Keyword);
|
|
27 |
structure Parse = ParseFUN (Lex);
|
|
28 |
structure ThySyn = ThySynFUN (Parse);
|
|
29 |
structure Readthy = ReadthyFUN (ThySyn);
|
|
30 |
|
|
31 |
open Readthy;
|