|
1 (* Title: Pure/RAW/ml_name_space_polyml-5.6.ML |
|
2 Author: Makarius |
|
3 |
|
4 Name space for Poly/ML. |
|
5 *) |
|
6 |
|
7 structure ML_Name_Space = |
|
8 struct |
|
9 open PolyML.NameSpace; |
|
10 |
|
11 type T = PolyML.NameSpace.nameSpace; |
|
12 val global = PolyML.globalNameSpace; |
|
13 val forget_global_structure = PolyML.Compiler.forgetStructure; |
|
14 |
|
15 type valueVal = Values.value; |
|
16 fun displayVal (x, depth, space) = Values.printWithType (x, depth, SOME space); |
|
17 fun displayTypeExpression (x, depth, space) = Values.printType (x, depth, SOME space); |
|
18 |
|
19 type typeVal = TypeConstrs.typeConstr; |
|
20 fun displayType (x, depth, space) = TypeConstrs.print (x, depth, SOME space); |
|
21 |
|
22 type fixityVal = Infixes.fixity; |
|
23 fun displayFix (_: string, x) = Infixes.print x; |
|
24 |
|
25 type structureVal = Structures.structureVal; |
|
26 fun displayStruct (x, depth, space) = Structures.print (x, depth, SOME space); |
|
27 |
|
28 type signatureVal = Signatures.signatureVal; |
|
29 fun displaySig (x, depth, space) = Signatures.print (x, depth, SOME space); |
|
30 |
|
31 type functorVal = Functors.functorVal; |
|
32 fun displayFunct (x, depth, space) = Functors.print (x, depth, SOME space); |
|
33 end; |