-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.ml
1236 lines (1147 loc) · 61 KB
/
index.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
infix to;
(* structure to bring code written for NJ ML into Standard ML *)
structure correction=
struct
val input = input (* for NJ ML: fn (is,n)=> input is n; *)
val output= output (* for NJ ML: fn (os,s)=> output os s; *)
exception Hd and Tl
fun hd[] = raise Hd
| hd(x::_) = x
and tl[] = raise Tl
| tl(_::x) = x
fun length[] = 0
| length(_::x) = 1 + length x
fun print s = output(std_out, s)
fun intToString i =
(if i<0 then "~" else "") ^ natToString (abs i)
and natToString n =
let val d = n div 10 in
if d = 0 then chr(ord"0" + n)
else natToString(d) ^ chr(ord"0" + (n mod 10))
end
val makestring = intToString
end;
structure setup =
struct
val stand_alone=false;
val first_page = "80";
val idxfile = "root.idx";
val latexfile = "index.tex";
end; (*setup*)
structure io_util=
struct
open correction;
exception Read of string;
fun read{is=is:instream,s=s:string}:string=
(* returns the string that is between the beginning of is
and the first occurrence of s. If s does not occur on
is, Read(s) is raised *)
if s="" then ""
else let val sl = explode s;
val first_s = hd sl;
val buf = ref ([]:string list)
(* we always have |buf|<=|s| *)
val result = ref ([]:string list)
(* reads up to first_s, which after the call
will be in the buffer *)
fun findchr () =
if !buf = [] then
let val first_in = input(is,1)
in if first_in = "" then raise Read(s)
else if first_in = first_s then (*found*)
(buf:= [first_in]; mask())
else (* store up first_in*)
(result:=first_in::(!result);
findchr())
end
else
let val first_in = hd (!buf)
in if first_in = first_s then (*found*) mask()
else (result:=first_in::(!result);
buf:=tl(!buf); findchr())
end
(* given that the first letters match, check
that the remaining match *)
and mask() =
if length(!buf)>size(s) then
output (std_out, ("\n error in mask: buf= "^ (implode(!buf))
^ ", looking for: " ^ s))
else
(* expand buffer to be of the same length as sl *)
(if length(!buf)<size s then
buf := !buf @ explode(input(is,(size s - length (!buf))))
else (*same size*) ();
if length(!buf)<size s (*eof*) then raise Read (s)
else if !buf = sl then () (*finished*)
else (*failure, store up one char*)
(result:=(hd(! buf))::(!result);
buf:= tl(!buf); findchr())
)
in findchr(); implode(rev(!result)) end;
exception Skip of string;
fun skip{is=is:instream,s=s:string}=
(* skips everything on is up to and including the first
occurrence of s. If s does not occur on is, Skip(s) is
raised and eof will be true*)
(read{is=is,s=s}; ()) handle Read s=> raise Skip s
end; (*io_util*)
structure table=
struct
type conversion_table = (string*string)list
val empty = []
exception Insert of {idxkey:string}
fun insert{idxkey=idxkey:string,pageref=pageref:string,
ct=[]:conversion_table}=
[(idxkey,pageref)]
| insert{idxkey,pageref,ct as((x,y)::rest)}=
if idxkey=x then raise Insert {idxkey=idxkey}
else (x,y):: insert{idxkey=idxkey,pageref=pageref,ct=rest};
exception Lookup of string
fun lookup{idxkey=idxkey:string,ct=[]:conversion_table}=
raise Lookup idxkey
| lookup{idxkey,ct=ct as (x,y)::rest}=
if x=idxkey then y else lookup{idxkey=idxkey,ct=rest}
end; (*table*)
functor Index(X : sig
exception Skip of string;
val skip: {is:instream,s:string}->unit
(* skips everything on is up to and including the first
occurrence of s. If s does not occur on is, Skip(s) is
raised and eof will be true*)
exception Read of string;
val read: {is:instream,s:string}->string
(* returns the string that is between the beginning of is
and the first occurrence of s. If s does not occur on
is, Read(s) is raised *)
type conversion_table;
(* conversion from the idx keys to page references *)
val empty: conversion_table;
exception Insert of {idxkey:string}
val insert: {idxkey:string,pageref:string,ct:conversion_table}->
conversion_table
(* inserts pageref under the key idxkey in ct. If idxkey already
is present, Insert is raised *)
exception Lookup of string
val lookup: {idxkey:string,ct:conversion_table}->string
(* returns the pageref recorded in ct under the entry of
idxkey, if such an entry is present. Otherwise, Lookup(idxkey)
is raised *)
val stand_alone : bool
(* depending on whether the latex file is to be included in the
root file or not *)
val first_page: string
(* string giving number of first page of index,
in case it is stand_alone *)
val idxfile: string;
val latexfile: string end
)=
struct
open X;
val itemCount = ref 0; (* number of items in the index -
one per item or subitem *)
val refCount = ref 0; (* number of page references *)
open correction;
val outbuf = ref "";
fun warning(s:string)= outbuf:= !outbuf ^ ("\nWARNING: " ^ s);
fun build_conversion_table():conversion_table =
(* returns a conversion table obtained from the idxfile by
repeatedly seeking out lines of the form
\indexentry{idxkey}{pageref}
*)
let val idxfile=open_in idxfile;
fun readRest(ct:conversion_table):conversion_table=
if end_of_stream(idxfile) then ct
else
(skip{is=idxfile,s="\\indexentry{"};
readRest(insert{idxkey = read{is=idxfile , s="}{" },
pageref = read{is=idxfile, s= "}" },
ct = ct
}
handle Insert {idxkey}=> (warning("the idxkey " ^idxkey^
" is defined more than once");
ct)
)
handle Read s=> (warning ("eof while looking for " ^ s); ct)
)handle Skip _ => ct;
val result = readRest(empty)
in
close_in idxfile; result
end (*build_conversion_table*)
val latexfile:outstream = open_out latexfile;
datatype inputItem = p of string (* single page reference *)
| op to of string*string (* interval *)
val (buffer,buflength)=(ref"",ref 0);
fun resetBuf() = (buffer:=""; buflength:=0);
fun emptyBuf() = (output( latexfile, !buffer);resetBuf());
fun addToBuf(s:string)=
(buffer:= !buffer ^ s;
buflength:= !buflength + size s;
if !buflength>5000 then emptyBuf() else ()
)
infix to;
val ct = build_conversion_table();
type interval = {frompage: int, topage: int}
exception StringListToInt;
fun stringToInt s = stringListToInt(rev(explode s),1)
and stringListToInt ([],ten_to_x) = 0
| stringListToInt ((s::rest),ten_to_x) =
(ord s - ord "0")*ten_to_x + stringListToInt(rest,10*ten_to_x)
fun convert(i:inputItem):interval=
(case i of
p s=> let val n = stringToInt s in {frompage=n,topage=n} end
| s to s' =>{frompage= stringToInt s, topage= stringToInt s'})
fun lookupItem(i:inputItem):inputItem =
(case i of
p(s) => p(lookup{idxkey=s,ct=ct})
| s to s' => lookup{idxkey=s,ct=ct} to
lookup{idxkey=s',ct=ct}
)handle Lookup idxkey=> (warning ("the idxkey " ^ idxkey ^
" is not defined by the idxfile");
p "0")
(* compresses list of ordered intervals *)
fun compress [] = []
| compress [x] = [x]
| compress ({frompage=f1, topage= t1} ::
(rest as {frompage = f2, topage= t2}:: rest')) =
if t1+1 >= f2 then compress({frompage=f1,topage=t2}::rest')
else {frompage=f1,topage=t1}::compress rest
(*print list of intervals, the entries separated by commas*)
fun show_interval{frompage=f,topage=t}=
if f = t then makestring f else
if t = f+1 then implode[makestring f, ", " , makestring t]
else implode[makestring f, "--", makestring t ]
and print_entries ([]:interval list):unit = ()
| print_entries [e]= (refCount:= !refCount +1;
addToBuf (show_interval e))
| print_entries (hd::tl) = (refCount:= !refCount +1;
addToBuf(show_interval hd ^ ", ");
print_entries tl);
fun entry(kind:string,key:string,l:inputItem list)=
(addToBuf("\n" ^ kind ^ key ^ (if l=[] then " " else ", "));
itemCount:= !itemCount+1;
if (!itemCount mod 10) = 0 then output(std_out,"\n.")else
output(std_out,".");
print_entries (compress (map (convert o lookupItem) l)));
fun item(key:string)(l:inputItem list)=
(print (key ^ "\n"); entry ("\\item ",key,l));
fun subitem(key:string)(l:inputItem list)= entry ("\\subitem ",key,l);
fun indexspace() = addToBuf "\n\\indexspace"
fun --(s:string)=
addToBuf("\n\\indexspace\n\\parbox{65mm}{\\hfil{\\large\\bf "
^s^ "}\\hfil}\n\\indexspace");
val _ =
if stand_alone then
(addToBuf("\\documentstyle[a4,12pt,twoside]{article}");
addToBuf("\n\\include{mac}");
addToBuf("\n\\pagestyle{headings}");
addToBuf("\n\\begin{document}");
addToBuf("\n\\setcounter{page}{" ^ first_page ^"}")
)
else ((addToBuf("\\addcontentsline{toc}{section}{\\protect\\numberline{}{Index}}");
addToBuf("\n\\label{index-sec}"));
addToBuf("\n\\begin{theindex}"));
fun terminate() = ((addToBuf("\n\\end{theindex}");
if stand_alone then addToBuf("\n\\end{document}") else ();
emptyBuf();
close_out latexfile; output(std_out, !outbuf);
{items = !itemCount, pagerefs= !refCount}))
end; (*Index*)
structure Run= Index(struct open setup io_util table end);
open Run;
infix to;
(*-----------*)
val it= item "\\verb+()+ (0-tuple)" [p"67.1",p"67.2",p"70",p"72.1"];
val it= item "\\verb+( )+" [p"6.1"];
val it= subitem "in expression" [p"10.6",p"11",p"27.1",p"52.1",p"67.1",p"69.7",p"70"];
val it= subitem "in pattern" [p"12.2",p"31.1",p"56.1",p"67.2",p"72.1"];
val it= subitem "in sequence" [p"10.2",p"69.3"];
val it= subitem "in type expression" [p"13.1",p"32.1",p"72.2"];
val it= item "\\verb+[ ]+" [p"6.1",p"67.1",p"67.2",p"70",p"72.1"];
val it= item "\\verb+{ }+" [p"6.1"];
val it= subitem "in atomic expression" [p"11",p"27.0",p"52.1",p"70"];
val it= subitem "in pattern" [p"12.2",p"31.1",p"56.0",p"72.1"];
val it= subitem "in record type expression" [p"13.1",p"32.1",p"72.2"];
val it= item "\\verb+(* *)+ (comment brackets)" [p"7.1",p"8.4"];
val it= item "\\verb+,+ (comma)" [p"6.1",p"10.2",p"67.1",p"69.3",p"70",p"72.1"];
val it= item "\\verb+...+ (wildcard pattern row)" [p"6.1",p"12.2",p"31.2",p"32.2",p"56.2",p"72.1"];
val it= item "\\verb+_+ (underbar)" [];
val it= subitem "wildcard pattern" [p"6.1",p"30.4",p"55.3",p"72.1"];
val it= subitem "in identifier" [p"7.2"];
val it= item "\\verb+|+" [p"6.1",p"7.3",p"70",p"71"];
val it= item "\\verb+=+ (reserved word)" [p"6.1"];
val it= item "\\verb+=+ (identifier and basic value)" [p"7.3",p"49.1",p"76.1",p"78.1"];
val it= item "\\verb+=>+" [p"6.1"];
val it= subitem "in a match rule" [p"11",p"70"];
val it= item "\\verb+->+" [p"6.1",p"13.1",p"32.1",p"72.2"];
val it= item "\\verb+~+" [p"6.2",p"7.3",p"49.1",p"74",p"77.1"];
val it= item "\\verb+.+ (period)" [];
val it= subitem "in real constants" [p"6.2"];
val it= subitem "in long identifiers" [p"7.2"];
val it= item "\\verb+\"+" [p"6.2"];
val it= item "\\verb+\\+" [p"6.2",p"7.3"];
val it= item "\\verb+!+" [p"7.3",p"74",p"77.1"];
val it= item "\\verb+%+" [p"7.3"];
val it= item "\\verb+&+" [p"7.3"];
val it= item "\\verb+$+" [p"7.3"];
val it= item "\\verb+#+" [p"6.1",p"7.3",p"67.1",p"70"];
val it= item "\\verb(+(" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+-+" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+/+" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+:+ (see also type constraint)" [p"7.3"];
val it= item "\\verb+::+" [p"73.1",p"74",p"75.2",p"76.1"];
val it= item "\\verb+:=+ (assignment)" [p"48.1",p"52.3",p"74",p"76.1"];
val it= item "\\verb+<+" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+>+" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+<=+" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+>=+" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+<>+" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\verb+?+" [p"7.3"];
val it= item "\\verb+@+" [p"7.3",p"74",p"76.1"];
val it= item "\\verb+'+" [p"7.3"];
val it= item "\\verb+^+" [p"6.2",p"7.3",p"74",p"76.1"];
val it= item "\\verb+*+" [p"7.3",p"7.5",p"49.1",p"67.2",p"72.2",p"74",p"76.1",p"78.1"];
val it= item "$\\emptymap$ (empty map)" [p"21.1"];
val it= item "$+$ (modification)" [p"21.1",p"22.1",p"51.1"];
val it= item "$\\oplus$" [p"22.2",p"34.3"];
val it= item "$\\Lambda$ (in type function)" [p"21.3",p"23.2",p"29.3"];
val it= item "$\\forall$ (in type scheme)" [p"21.3",p"23.3"];
val it= subitem "see also generalisation" [];
val it= item "$\\alpha$ (see type variable)" [];
val it= item "$\\varrho$ (see record type)" [];
val it= item "$\\tau$ (see type)" [];
val it= item "$\\tauk$ (type vector)" [p"21.2",p"23.1",p"23.2"];
val it= item "$\\tych$ (type scheme)" [p"21.2",p"23.3","24.2"to"24.3",p"26.2",p"30.1",p"37.1",
p"43.3","74"to"75.1"];
val it= item "$\\longtych$ (see type scheme)" [];
val it= item "$\\rightarrow$ (function type)" [p"21.2",p"27.3",p"31.3",p"32.1"];
val it= item "$\\downarrow$ (restriction)" [p"59.1"];
val it= item "$\\typefcn$ (see type function)" (*theta*) [];
val it= item "$(\\theta,\\CE)$ (see type structure)" [];
val it= item "$\\typefcnk$ (see type function)" (* Lambda alphak.tau *) [];
val it= item "$\\sig$ (see signature)" (*Sigma*) [];
val it= item "$\\longsig{}$ (see signature)" [];
val it= item "$\\funsig$ (see functor signature)" (*Phi*) [];
val it= item "$\\longfunsig{}$ (see functor signature)" [];
val it= item "$\\tyrea$ (type realisation)" [p"36.2"];
val it= item "$\\strrea$ (structure realisation)" [p"36.3"];
val it= item "$\\rea$ (realisation)" [p"36.3",p"37.2",p"37.2.5",p"46"];
val it= item "$\\geq$ (see instance)" [];
val it= item "$\\succ$ (see generalisation and enrichment)" [];
val it= item "$\\ts$ (turnstile)" [p"5.1",p"26.1",p"27.3",p"39.1",p"50.2",p"59.2",p"64.1"];
val it= item "$\\tsdyn$ (evaluation)" [p"64.1"];
val it= item "$\\tsstat$ (elaboration)" [p"64.1"];
val it= item "$\\ra$" [p"5.1",p"26.1",p"39.1",p"50.2",p"59.2",p"64.1"];
val it= item "$\\langle\\ \\rangle$ (see options)" [];
val it= item "$\\langle'\\rangle$" [p"41.1"];
val it= --"A";
val it= item "$a$ (see address)" (*a*) [];
val it= item "$\\Abs$ (abstype operation)" [p"25.1",p"28.2"];
val it= item "{\\tt abs}" [p"49.1",p"74",p"77.1"];
val it= item "{\\tt Abs}" [p"49.2",p"77.1"];
val it= item "$\\ABSTYPE$" [p"6.1",p"12.1",p"25.1",p"28.2",p"68.1",p"71"];
val it= item "abstype declaration" [p"12.1",p"25.1",p"28.2",p"71"];
val it= item "addition of numbers (\\ml{+})" [p"7.3",p"49.1",p"74",p"76.1",p"78.1"];
val it= item "$\\Addr$ (addresses)" [p"47.2",p"48.1"];
val it= item "address ($\\A$)" [p"47.2"];
val it= subitem "fresh" [p"52.3"];
val it= item "admissibility" [p"36.1",p"38.1"];
val it= item "admit equality" [p"22.3",p"23.1",p"24.4",p"25.1",p"29.0",
p"36.2",p"38.1",p"38.5",p"42.2",p"42.3",p"73.1",p"78.1"]
val it= item "$\\AND$" [p"6.1","16.1"to"18.1",p"71"];
val it= item "\\ANDALSO" [p"6.1",p"67.1",p"70"];
val it= item "appending lists (\\verb+@+)" [p"7.3",p"74",p"76.1"];
val it= item "$\\apexp$ (application expression)" (*appexp*) [p"69.1",p"70"];
val it= item "application" [p"11",p"27.3"];
val it= subitem "of basic value ($\\APPLY$)" [p"49.1",p"53.1",p"77.1"];
val it= subitem "of (function) closure" [p"53.1"];
val it= subitem "of value constructor" [p"52.3"];
val it= subitem "of exception name" [p"52.3"];
val it= subitem "of {\\tt ref}" [p"52.3"];
val it= subitem "of {\\tt :=}" [p"52.3",p"74"];
val it= subitem "infixed" [p"11"];
val it= item "application of functor (see functor application)" [];
val it= item "application of type function" [p"23.2",p"32.1"];
val it= item "application expression" [p"69.1",p"70"];
val it= item "applicative type variable (see type variable)" [];
val it= item "$\\APPLY$ (see application)" [];
val it= item "$\\AppTyVar$ (applicative type variables)" [p"8.1"];
val it= item "$\\apptyvars$ (free applicative type variables)" [p"21.3"];
val it= item "{\\tt arctan}" [p"49.1",p"74",p"77.1"];
val it= item "arity" [];
val it= subitem "of type name" [p"20.3"];
val it= subitem "of type function" [p"23.2",p"43.2"];
val it= item "arrow type (see function type expression)" [];
val it= item "\\AS" [p"6.1",p"12.2",p"31.3",p"57.0",p"72.1"];
val it= item "assignment (\\ml{:=})" [p"48.1",p"52.3",p"74",p"76.1"];
val it= item "$\\atexp$ (atomic expression)" [p"10.1",p"11",p"26.2",p"51.2",p"67.1",p"70"];
val it= item "atomic expression" [p"10.1",p"11",p"26.2",p"51.2",p"67.1",p"70"];
val it= subitem "as expression" [p"11",p"27.3",p"52.3"];
val it= item "atomic pattern" [p"10.1",p"12.2",p"30.4",p"55.3",p"67.2",p"72.1"];
val it= subitem "as pattern" [p"12.2",p"31.3",p"56.3",p"72.1"];
val it= item "$\\atpat$ (atomic pattern)" [p"10.1",p"12.2",p"30.4",p"55.3",p"67.2",p"72.1"];
val it= --"B";
val it= item "$b$ (see basic value)" [];
val it= item "$\\B$ (see basis)" [];
val it= item "$\\B_0$ (initial basis)" [];
val it= subitem "static" [p"73.1"];
val it= subitem "dynamic" [p"76.1"];
val it= item "bare language" [p"4.1"];
val it= item "$\\BasExc$ (basic exception names)" (*BasExName*) [p"49.2",p"76.1"];
val it= item "basic value ($b$)" ["47.2"to"49.1","76.1"to"79.2"];
val it= item "basis ($\\B$)" [p"4.3"];
val it= subitem "static" [p"26.2",p"34.1",p"39.1",p"64.1",p"73.1"];
val it= subitem "dynamic" [p"58.2",p"64.1",p"76.1"];
val it= subitem "combined" [p"64.1"];
val it= item "$\\Basis$ (bases)" [p"34.1",p"58.2",p"64.1"];
val it= item "$\\BasVal$ (basic values)" ["47.2"to"49.1","76.1"to"79.2"];
val it= item "$\\Bdyn$ (dynamic basis)" [p"64.1"];
val it= item "{\\tt Bind} (exception)" [p"49.2",p"55.1"];
val it= item "$\\BOOL$" [p"73.1",p"75.2"];
val it= item "bound names" [p"34.2",p"35.2",p"36.3"];
val it= item "$\\Bstat$ (static basis)" [p"64.1"];
val it= --"C";
val it= item "$\\C$ (context)" [p"21.2",p"22.1",p"26.1","26.2"to"33.2"];
val it= item "``{\\tt Cannot open} $s$''" [p"79.1.1"];
val it= item "\\CASE" [p"6.1",p"67.1",p"70"];
val it= item "$\\CE$ (constructor environment)" [p"21.2","24.4"to"25.1",p"30.2",
p"44.1.5"];
val it= item "{\\tt chr}" [p"49.1",p"74",p"77.1"];
val it= item "{\\tt Chr}" [p"49.2",p"77.1"];
val it= item "$\\cl{}{}$ (closure of types etc.)" ["24.2"to"24.3",p"28.2",p"30.1",p"42.2",p"43.3"];
val it= item "\\verb+close_in+" [p"49.1",p"75.1",p"78.1",p"79.1.1"];
val it= item "\\verb+close_out+" [p"49.1",p"75.1",p"79.1.1"];
val it= item "$\\Closure$ (function closures)" [p"48.1"];
val it= subitem "recursion" [p"50.1"];
val it= item "closure rules (signatures and functors)" [p"18.2",p"41.3",p"44.2",p"45.1.5"];
val it= item "coercion of numbers (\\ml{real})" [p"49.1",p"74",p"77.1"];
val it= item "comments" [p"7.1",p"8.4"];
val it= item "composition of functions (\\ml{o})" [p"74",p"76.1"];
val it= item "$\\con$ (see value constructor)" [];
val it= item "$\\Con$ (value constructors)" [p"7.2",p"48.1"];
val it= item "$\\constrs$ (constructor binding)" (*conbind*) [p"10.1",p"12.1",p"30.1",p"71"];
val it= item "$\\ConBind$ (constructor bindings)" (*ConBind*) [p"10.1",p"47.1"];
val it= item "concatenating strings (\\verb+^+)" [p"7.3",p"74",p"76.1"];
val it= item "$\\condesc$ (constructor description)" [p"15.1",p"16.2",p"17",p"43.35",
p"58.1"];
val it= item "ConDesc (constructor descriptions)" [p"15.1",p"58.1"];
val it= item "$\\ConEnv$ (constructor environments)" [p"21.2"];
val it= item "``consing'' an element to a list (\\ml{::})" [p"73.1",p"74",p"75.2",p"76.1"];
val it= item "consistency" [];
val it= subitem "of type structures" [p"35.1",p"44.1.5"];
val it= subitem "of semantic object" [p"35.1",p"36.1",p"44.1"];
val it= item "constant (see also value constant and exception constant)" [];
val it= subitem "special (see special constant)" [];
val it= item "construction (see value construction and exception construction)" [];
val it= item "constructor binding ($\\constrs$)" [p"10.1",p"12.1",p"30.1",p"71"];
val it= item "constructor description" [p"15.1",p"16.2",p"17",p"43.35",p"58.1"];
val it= item "constructor environment ($\\CE$)" [p"21.2","24.4"to"25.1",p"30.2",
p"44.1.5"];
val it= item "$\\ConsType$ (constructed types)" [p"21.2"];
val it= item "contents of (see dereferencing)" [];
val it= item "context ($\\C$)" [p"21.2",p"22.1",p"26.1","26.2"to"33.2"];
val it= item "$\\Context$ (contexts)" [p"21.2"];
val it= item "control character" [p"6.2"];
val it= item "Core Language" [p"4.1"];
val it= subitem "syntax" [p"6.1"];
val it= subitem "static semantics" [p"20.1"];
val it= subitem "dynamic semantics" [p"47.1"];
val it= item "Core Language Programs" [p"65.4"];
val it= item "{\\tt cos}" [p"49.1",p"74",p"77.1"];
val it= item "cover" [p"38.1"];
val it= item "cycle-freedom" [p"35.3",p"36.1"];
val it= --"D";
val it= item "\\DATATYPE" [p"6.1",p"12.1",p"17",p"28.2",p"42.2",p"58.1",p"68.1",p"71"];
val it= item "datatype binding" [p"10.1",p"12.1",p"30.1",p"71"];
val it= item "datatype declaration" [p"12.1",p"28.2",p"71"];
val it= item "datatype description" [p"15.1",p"17",p"43.3"];
val it= item "datatype specification" [p"17",p"42.2",p"58.1"];
val it= item "$\\datbind$ (datatype binding)" [p"10.1",p"12.1",p"30.1",p"71"];
val it= item "DatBind (datatype bindings)" [p"10.1",p"47.1"];
val it= item "$\\datdesc$ (datatype description)" [p"15.1",p"17",p"43.3"];
val it= item "DatDesc (datatype descriptions)" [p"15.1",p"58.1"];
val it= item "$\\dec$ (declaration)" [p"10.1",p"12.1",p"28.2",p"54.3",p"68.1",p"71"];
val it= item "Dec (declarations)" [p"10.1"];
val it= item "declaration (Core)" [p"10.1",p"12.1",p"28.2",p"54.3",p"68.1",p"71"];
val it= subitem "as structure-level declaration" [p"16.1",p"40.2",p"60.2"];
val it= item "dereferencing (\\ml{!})" [p"7.3",p"74",p"77.1"];
val it= item "derived forms" [p"4.1",p"9.3",p"14.1","66.1"to"68.2"];
val it= item "{\\tt Diff}" [p"49.2",p"78.1"];
val it= item "digit"[];
val it= subitem "in identifier" [p"7.2"];
val it= subitem "in integers and reals" [p"6.2"];
val it= item "$\\dir$ (fixity directive)" [p"9.2",p"12.1",p"14.1"];
val it= item "directive" [p"12.1"];
(*item "disjoining bound names" [p"34.2",p"36.3"]; *)
val it= item "{\\tt div}" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "{\\tt Div}" [p"49.2",p"78.1"];
val it= item "division of reals (\\ml{/})" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "\\DO" [p"6.1",p"67.1",p"70"];
val it= item "$\\Dom$ (domain)" [p"21.1"];
val it= item "dynamic" [];
val it= subitem "semantics (Core)" [p"47.1"];
val it= subitem "semantics (Modules)" [p"58.1"];
val it= subitem "basis (see basis)" [];
val it= --"E";
val it= item "$\\exval$ (exception value)" (*e*) [p"48.1"];
val it= item "$[\\exval]$ (see packet)" [];
val it= item "\\verb+E+\\ (exponent)" [p"6.2"];
val it= item "$\\E$ (environment)" [];
val it= subitem "static" [p"21.2",p"25.1",p"26.1","28.2"to"29.0"];
val it= subitem "dynamic" [p"48.1","51.2"to"57.1",p"59.1",p"60.1"];
val it= item "$\\EE$ (see exception constructor environment)" [];
val it= item "elaboration" [p"4.1",p"4.1",p"5.1",p"26.1",p"39.1",p"64.1"];
val it= item "\\ELSE" [p"6.1",p"67.1",p"70"];
val it= item "empty" [];
val it= subitem "declaration (Core)" [p"12.1",p"28.3",p"54.3",p"71"];
val it= subitem "functor declaration" [p"18.1",p"45.1",p"63.1"];
val it= subitem "functor specification" [p"18.1",p"44.2"];
val it= subitem "signature declaration" [p"16.1",p"41.3",p"61.3"];
val it= subitem "specification" [p"17",p"42.3",p"62.1"];
val it= subitem "structure-level declaration" [p"16.1",p"40.2",p"60.2"];
val it= item "$\\e$ (exception name)" (*en*)[p"47.2",p"55.2"];
val it= item "\\END" [p"6.1","11"to"12.1","16.1"to"17","70"to"71"];
val it= item "\\verb+end_of_stream+" [p"49.1",p"75.1",p"79.1.1"];
val it= item "enrichment ($\\succ$)" [p"33.15",p"37.1",p"39.2",p"41.1",p"45.2"];
val it= item "$\\excs$ (exception name set)" (*ens*)[p"48.1",p"55.2"];
val it= item "environment (see $\\E$)";
val it= item "$\\Env$ (environments)" [p"21.2",p"48.1"];
val it= item "\\EQTYPE" [p"14.1",p"17",p"42.2",p"58.1"];
val it= item "equality" [];
val it= subitem "admit equality" [p"22.3",p"23.1",p"24.4",p"25.1",p"29.0",
p"36.2",p"38.1",p"38.5",p"42.2",p"42.3",p"73.1",p"78.1"]
val it= subitem "maximise equality" [p"24.4",p"28.2"];
val it= subitem "on abstract types" ["24.4"to"25.1"];
val it= subitem "of structures (sharing)" [p"44.1"];
val it= subitem "of type functions (sharing)" [p"23.2","44.1"to"44.1.5"];
val it= subitem "of type schemes" [p"23.3"];
val it= subitem "of values" [p"22.3", p"74",p"76.1",p"78.1"];
val it= subitem "-principal" [p"38.5",p"41.25",p"42.1",p"44.4",p"45.2"];
val it= subitem "respect equality" [p"24.4", p"29.0", p"38.1",p"38.5"];
val it= item "equality attribute" [];
val it= subitem "of type name" [p"20.3",p"23.1","24.4"to"25.1",p"36.2",
p "38.1",p "38.5",p"42.2"];
val it= subitem "of type variable" [p"7.4",p"20.3",p"22.3",p"23.2",p"23.3"];
val it= item "equality type" ["22.3"to"23.1",p"74"];
val it= item "equality type function" [p"23.2"];
val it= item "equality type specification" [p"17",p"42.2",p"58.1"];
val it= item "equality type variable" [p"7.4",p"20.3",p"22.3",p"23.1"];
val it= item "escape sequence" [p"6.2"];
val it= item "evaluation" [p"4.1",p"5.1",p"50.2",p"59.2",p"64.1"];
val it= item "$\\exnbind$ (exception binding)" (*exbind*) [p"10.1",p"12.1",p"30.1",p"55.2",p"71"];
val it= item "ExBind (exception bindings)" [p"10.1"];
val it= item "\\EXCEPTION" [p"6.1",p"12.1",p"17",p"28.2",p"42.2",p"54.3",p"61.5",p"71"];
val it= item "exception binding" [p"10.1",p"12.1",p"30.1",p"55.2",p"71"];
val it= item "exception constant ($\\exn$ or $\\longexn$)" [];
val it= subitem "as atomic pattern" [p"12.2",p"30.4","55.3"to"56.0",p"72.1"];
val it= item "exception construction" [];
val it= subitem "as pattern" [p"12.2",p"31.3",p"56.3",p"72.1"];
val it= subitem "infixed, as pattern" [p"9.2",p"12.2",p"72.1"];
val it= item "exception constructor" [];
val it= subitem "as atomic expression" [p"11",p"26.2",p"52.1",p"70"];
val it= item "exception constructor environment ($\\EE$)" [];
val it= subitem "static" [p"21.2",p"22.1",p"30.3",p"59.1"];
val it= subitem "dynamic" [p"48.1",p"55.2",p"59.1"];
val it= item "exception convention" [p"51.1",p"52.2",p"53.1",p"65.1"];
val it= item "exception declaration" [p"12.1",p"28.2",p"54.3",p"71"];
val it= item "exception description" [p"15.1",p"17",p"43.4",p"62.3"];
val it= item "exception name ($\\e$)" (*en*) [p"47.2"];
val it= subitem "fresh" [p"55.2"];
val it= item "exception name set ($\\excs$)" [p"48.1",p"55.2"];
val it= item "exception packet (see packet)" [];
val it= item "exception specification" [p"17",p"42.2",p"61.5"];
val it= item "exception value ($\\exval$)" [p"48.1"];
val it= item "$\\exn$ (see exception constant or constructor)" []; (*excon*)
val it= item "$\\Exn$ (exception constructors)" [p"7.2"];(*ExCon*)
val it= item "$\\ExnEnv$ (exception constructor environments)" (*ExConEnv*) [p"21.2",p"48.1"];
val it= item "$\\exns$ (exeption constructor set)" [p"58.2",p"62.3"]; (*excons*)
val it= item "$\\exndesc$ (exception description)" (*exdesc*) [p"15.1",p"17",p"43.4",p"62.3"];
val it= item "ExDesc (exception descriptions)" [p"15.1"];
val it= item "execution" [p"4.3",p"64.1"];
val it= item "exhaustive patterns" ["32.2"to"33.1",p"49.2"];
val it= item "$\\EXCN$" (*the type exn*) [p"27.3",p"30.4",p"31.3",p"43.4",p"73.1",p"75.2"];
val it= item "$\\Exc$ (exception names)" [p"47.2"]; (*ExName*)
val it= item "$\\ExcSet$ (exception name sets)" [p"48.1"]; (*ExNameSet*)
val it= item "$\\exp$ (expression)" [p"10.1",p"11",p"27.3",p"52.3",p"67.1",p"70"];
val it= item "Exp (expressions)" [p"10.1"];
val it= item "{\\tt exp} (exponential)" [p"49.1",p"74",p"77.1"];
val it= item "{\\tt Exp}" [p"49.2",p"77.1"];
val it= item "expansive expression" [p"23.4",p"24.3"];
val it= item "{\\tt explode} (a string)" [p"49.1",p"74",p"78.0"];
val it= item "expression" [p"10.1",p"11",p"27.3",p"52.3",p"67.1",p"70"];
val it= item "expression row" [p"10.1",p"11",p"27.2",p"52.2",p"70"];
val it= item "$\\labexps$ (expression row)" (*exprow*) [p"10.1",p"11",p"27.2",p"52.2",p"70"];
val it= item "ExpRow (expression rows)" [p"10.1"];
val it= item "$\\ExVal$ (exception values)" [p"48.1"];
val it= --"F";
val it= item "$\\F$ (functor environment)" [p"34.1",p"45.1",p"45.2",p"58.2",
p"62.5",p"63.1"];
val it= item "$\\FAIL$ (failure in pattern matching)" [p"47.2",p"51.1",p"52.1",p"53.1",
p"54.1",p"55.3",p"56.0",p"56.3",p"57.0",p"57.1"];
val it= item "\\FALSE" [p"73.1",p"74",p"75.2"];
val it= item "$\\finfun{}{}$ (finite map)" [p"20.4"];
val it= item "$\\Fin$ (finite subset)" [p"20.4"];
val it= item "{\\tt floor}" [p"49.1",p"74",p"77.1"];
val it= item "{\\tt Floor}" [p"49.2",p"77.1"];
val it= item "\\FN" [p"6.1",p"11",p"13.2",p"27.3",p"53.1",p"70"];
val it= item "formatting character" [p"6.3"];
val it= item "\\FUN" [p"6.1",p"66.1",p"68.1",p"71"];
val it= item "$\\funbind$ (functor binding)" [p"15.1",p"18.1",p"45.2",p"62.5",
p"66.1",p"68.2"];
val it= item "FunBind (functor bindings)" [p"15.1"];
val it= item "function ($\\fnexp$)" [p"11",p"27.3",p"53.1",p"70"];
val it= item "function declaration (see $\\FUN$)" [];
val it= item "function type ($\\rightarrow$)" [p"21.2",p"27.3",p"31.3",p"32.1"];
val it= item "function type expression (\\verb+->+)" [p"13.1",p"32.1",p"72.2"];
val it= item "function-value binding ($\\fvalbind$)" [p"33.1",p"66.1",p"68.1",p"71"];
val it= item "\\FUNCTOR" [p"14.1",p"18.1",p"44.2",p"45.1",p"63.1"];
val it= item "functor application" [p"16.1",p"39.2",p"60.1",p"68.2"];
val it= item "functor binding" [p"15.1",p"18.1",p"45.2",p"62.5",p"66.1",p"68.2"];
val it= item "functor closure" [p"58.2",p"60.1",p"62.5"];
val it= item "functor declaration" [p"15.1",p"18.1",p"45.1",p"63.1"];
val it= subitem "as top-level declaration" [p"18.1",p"46.0",p"63.2"];
val it= item "functor description" [p"15.1",p"18.1",p"44.3"];
val it= item "functor environment ($\\F$)" [p"34.1",p"45.1",p"45.2",p"58.2",
p"62.5",p"63.1"];
val it= item "functor identifier ($\\funid$)" [p"14.1",p"16.1",p"18.1"];
val it= item "functor signature ($\\funsig$)" [p"34.1",p"44.4",p"45.2",p"46"];
val it= item "functor signature expression" [p"15.1",p"18.1",p"44.4",p"68.2"];
val it= item "functor signature matching" [p"15.1",p"46"];
val it= item "functor specification" [p"15.1",p"18.1",p"44.2"];
val it= item "$\\FunctorClosure$ (functor closures)" [p"58.2"];
val it= item "$\\fundec$ (functor declaration)" [p"15.1",p"18.1",p"45.1",p"63.1"];
val it= item "FunDec (functor declarations)" [p"15.1"];
val it= item "$\\fundesc$ (functor description)" [p"15.1",p"18.1",p"44.3"];
val it= item "FunDesc (functor descriptions)" [p"15.1"];
val it= item "$\\FunEnv$ (functor environments)" [p"34.1",p"58.2"];
val it= item "$\\funid$ (functor identifier)" [p"14.1",p"16.1",p"18.1"];
val it= item "$\\FunId$ (functor identifiers)" [p"14.1"];
val it= item "$\\funsigexp$ (functor signature expression)" [p"15.1",p"18.1",p"44.4",p"68.2"];
val it= item "FunSigExp (functor signature expressions)" [p"15.1"];
val it= item "$\\funspec$ (functor specification)" [p"15.1",p"18.1",p"44.2"];
val it= item "FunSpec (functor specifications)" [p"15.1"];
val it= item "$\\FunType$ (function types)" [p"21.2"];
val it= item "$\\fvalbind$ (function-value binding)" [p"66.1",p"68.1",p"71"];
val it= subitem "exhaustive" [p"33.1"];
val it= indexspace();
val it= indexspace();
val it= --"G";
val it= item "$\\G$ (signature environment)" [p"34.1",p"41.3",p"58.2",p"61.3",p"61.4"];
val it= item "generalisation ($\\succ$)" [p"23.3",p"26.2",p"30.4",p"31.3",
p"33.15",p"37.1"];
val it= item "generative signature expression" [p"16.1",p"41.2",p"61.2"];
val it= item "generative structure expression" [p"16.1",p"39.2",p"60.1"];
val it= item "grammar" [p"4.1"];
val it= subitem "for the Core" [p"9.3",p"69.1"];
val it= subitem "for Modules" [p"14.2"];
val it= --"H";
val it= item "\\HANDLE" [p"6.1",p"11",p"27.3",p"53.1",p"70"];
val it= --"I";
val it= item "$\\I$ (interface)" [p"58.2",p"61.2","61.5"to"62.1"];
val it= item "$\\IB$ (interface basis)" [p"58.2",p"59.1","61.2"to"62.1",p"62.4"];
val it= item "identifier ($\\id$)" [p"7.2",p"14.1"];
val it= subitem "alphanumeric" [p"7.2"];
val it= subitem "long" [p"7.2",p"65.5"];
val it= subitem "qualified" [p"7.2"];
val it= subitem "symbolic" [p"7.2"];
val it= item "$\\IE$ (interface environment)" [p"58.2",p"62.4"];
val it= item "\\IF" [p"6.1",p"67.1",p"70"];
val it= item "imperative attribute" [p"20.3",p"23.2",p"23.3"];
val it= item "imperative type" [p"23.2",p"30.3",p"30.35"];
val it= item "imperative type variable (see type variable)" [];
val it= item "implementation" [p"4.1",p"64.1"];
val it= item "{\\tt implode} (a string list)" [p"49.1",p"74",p"78.1"];
val it= item "$\\ImpTyVar$ (imperative type variables)" [p"7.4"];
(* from version2:
val it= item "$\\imptyvars$ (free imperative type variables)" [p"21.3",p"40.2"]; *)
val it= item "$\\imptyvars$ (free imperative type variables)" [p"21.3",
"45.3"to"46.01"];
val it= item "$\\In$ (injection)" [p"22.1"];
val it= item "\\IN" [p"6.1",p"11",p"12.1",p"16.1",p"17",p"67.1",p"70",p"71"];
val it= item "\\INCLUDE" [p"14.1",p"17",p"42.3",p"62.1"];
val it= item "inference" [p"5.1"];
val it= item "inference rules" [];
val it= subitem "static semantics (Core)" [p"26.1"];
val it= subitem "static semantics (Modules)" [p"39.1"];
val it= subitem "dynamic semantics (Core)" [p"50.1"];
val it= subitem "dynamic semantics (Modules)" [p"59.2"];
val it= item "$\\inexp$ (infix expression)" [p"69.1",p"70"];
val it= item "InfExp (infix expressions)" [p"69.1",p"70"];
val it= item "\\INFIX" [p"6.1",p"8.5",p"9.1",p"12.1",p"71"];
val it= item "infix expression" [p"9.1",p"11",p"69.1",p"70"];
val it= item "infix pattern" [p"9.1",p"12.2",p"72.1"];
val it= item "infixed identifiers" [p"8.5",p"9.1",p"11",p"12.1",p"14.1",
p"70",p"71",p"72.1",p"74"];
val it= item "\\INFIXR" [p"6.1",p"8.5",p"9.1",p"12.1",p"71"];
val it= item "initial basis" [p"5.0",p"73.1",p"76.1"];
val it= item "injection (\\In)" [p"22.1"];
val it= item "{\\tt input}" [p"49.1",p"75.1",p"79.1.1"];
val it= item "input/output" [p"75.1",p"78.1"];
val it= item "instance ($\\geq$)" [];
val it= subitem "of signature" [p"36.4",p"37.2",p"38.1",p"38.5",p"41.2",p"42.3"];
val it= subitem "of functor signature" [p"36.5",p"39.2"];
val it= subitem "in matching" ["37.2"to"37.2.5"];
val it= item "$\\INSTREAM$" [p"73.1",p"75.2",p"78.1"];
val it= item "$\\INT$" [p"73.1",p"75.2"];
val it= item "$\\Int$ (interfaces)" [p"58.2"];
val it= item "$\\IntBasis$ (interface bases)" [p"58.2"];
val it= item "integer constant" [p"6.2",p"75.2"];
val it= item "$\\IntEnv$ (interface environments)" [p"58.2"];
val it= item "$\\Inter$" [p"58.2",p"61.1",p"62.5"];
val it= item "interaction" [p"4.1",p"64.1"];
val it= item "interface ($\\I$)" [p"58.2",p"61.2","61.5"to"62.1"];
val it= item "interface basis ($\\IB$)" [p"58.2",p"59.1","61.2"to"62.1",p"62.4"];
val it= item "interface environment ($\\IE$)" [p"58.2",p"62.4"];
val it= item "{\\tt Interrupt}" [p"49.2",p"64.2"];
val it= item "{\\tt Io}" [p"49.2",p"79.1.1",p"79.1.1"];
val it= item "irredundant patterns" ["32.2"to"33.1",p"49.2"];
val it= item "{\\tt it}" [p"68.1"];
val it= --"L";
val it= item "L (left associative)" [p"10.4",p"69.7"];
val it= item "$\\lab$ (label)" [p"7.2",p"8.2"];
val it= item "$\\Lab$ (labels)" [p"7.2",p"8.2"];
val it= item "\\LET" [p"6.1"];
val it= subitem "expression (Core)" [p"11",p"27.1",p"52.1",p"67.1",p"70"];
val it= subitem "expression (Modules)" [p"16.1",p"39.2",p"60.1"];
val it= item "letter in identifer" [p"7.2"];
val it= item "lexical analysis" [p"8.4",p"9.3"];
val it= item "$\\LIST$" [p"73.1",p"75.2"];
val it= item "list reversal (\\ml{rev})" [p"74",p"77.1"];
val it= item "{\\tt ln}" [p"49.1",p"74",p"77.1"];
val it= item "{\\tt Ln}" [p"49.2",p"77.1"];
val it= item "\\LOCAL" [p"6.1"];
val it= subitem "declaration (Core)" [p"12.1",p"28.3",p"54.3",p"71"];
val it= subitem "declaration (Modules)" [p"16.1",p"40.2",p"60.2"];
val it= subitem "specification (Modules)" [p"17",p"42.3",p"62.1"];
val it= item "long identifiers (e.g. $\\longexn$)" [p"7.2",p"65.5"];
val it= item "{\\tt lookahead}" [p"49.1",p"75.1",p"79.1.1"];
val it= --"M";
val it= item "$\\m$ (structure name)" [p"20.2",p"21.2",p"22.1",p"34.2",p"35.1",p"35.3",
p"36.3",p"37.1",p"41.2",p"44.1",p"48.2"];
val it= subitem "fresh" [p"39.2",p"40.1"];
val it= item "$\\M$ (structure name set)" [p"34.1",p"39.2"];
val it= item "\\ml{map}" [p"74",p"77.1"];
val it= item "match ($\\match$)" [p"10.1",p"11",p"28.1",p"54.1"];
val it= subitem "irredundant" [p"32.2",p"49.2"];
val it= subitem "exhaustive" [p"32.2",p"49.2"];
val it= subitem "in closure" [p"48.1",p"50.1"];
val it= item "$\\Match$" [p"10.1"];
val it= item "{\\tt Match} (exception)" [p"49.2",p"53.1"];
val it= item "match rule" [p"10.1",p"11",p"28.1",p"54.2"];
val it= item "matching" [];
val it= subitem "signatures (see signature matching)" [];
val it= subitem "functor signatures (see functor signature matching)" [];
val it =item "maximise equality" [p"24.4",p"28.2"];
val it= item "$\\mem$ (memory)" [p"48.1",p"52.3",p"57.0"];
val it= item "$\\Mem$ (memories)" [p"48.1"];
val it= item "memory ($\\mem$)" [p"48.1",p"52.3",p"57.0"];
val it= item "{\\tt mod}" [p"49.1",p"74",p"76.1",p"78.1"];
val it= item "{\\tt Mod}" [p"49.2",p"78.1"];
val it= item "modification ($+$)" [];
val it= subitem "of finite maps" [p"21.1"];
val it= subitem "of environments" [p"22.1",p"51.1"];
val it= item "module" [p"15.1"];
val it= item "Modules" [p"4.1"];
val it= item "$\\mrule$ (match rule)" [p"10.1",p"11",p"28.1",p"54.2"];
val it= item "Mrule (match rules)" [p"10.1"];
val it= item "multiplication of numbers (\\ml{*})" [p"49.1",p"74",p"76.1",p"78.1"];
val it= --"N";
val it= item "$\\n$ (name, see structure name, type name and exception name)" [];
val it= item "$\\N$ (name set)" [p"34.1",p"39.1"];
val it= item "$n$-tuple" [p"67.1",p"67.2",p"70",p"72.1"];
val it= item "name" [];
val it= subitem "of structure ($\\m$)" [p"20.2",p"21.2",p"22.1",p"34.2",
p"35.1",p"35.3",p"36.3",p"37.1",p"39.1",p"40.1",
p"41.2",p"44.1",p"48.2"];
val it= item "name set ($\\N$)" [p"34.1",p"39.1"];
val it= item "$\\NamesFcn$ (free names)" (*names*) [p"34.1",p"35.2",p"39.1",p"45.2"];
val it= item "$\\NameSets$ (name sets)" [p"34.1"];
val it= item "Natural Semantics" [p"5.1"];
val it= item "{\\tt Neg}" [p"49.2",p"77.1"];
val it= item "negation of booleans (\\ml{not})" [p"74",p"77.1"];
val it= item "negation of numbers (\\verb+~+)" [p"6.2",p"49.1",p"74",p"77.1"];
val it= item "\\NIL" [p"67.1",p"73.1",p"74",p"75.2"];
val it= item "non-expansive expression" [p"23.4",p"24.3"];
val it= item "\\NONFIX" [p"6.1",p"9.1",p"12.1",p"14.1",p"71",p"74"];
val it= item "nonfix identifiers" [p"9.1",p"12.1",p"14.1",p"71",p"74"];
val it= item "\\ml{not}" [p"74",p"77.1"];
val it= item "\\NUM" [p"74"];
val it= --"O";
val it= item "\\ml{o} (function composition)" [p"74",p"76.1"];
val it= item "occurrence" [];
val it= subitem "substructure" [p"34.2"];
val it= item "$\\of{}{}$ (projection)" [p"22.1",p"34.2"];
val it= item "$\\OF$" [p"6.1"];
val it= subitem "in $\\CASE$ expression" [p"67.1",p"70"];
val it= subitem "in constructor binding" [p"12.1"];
val it= subitem "in exception binding" [p"12.1",p"47.1"];
val it= subitem "in exception description" [p"17",p"58.1"];
val it= item "\\OP" [p"6.1",p"9.1"];
val it= subitem "on variable or constructor" [p"11",p"12.2",p"70",p"71",p"72.1"];
val it= subitem "in constructor binding" [p"12.1",p"71"];
val it= item "\\OPEN" [p"6.1" (*version2:,p"7.2" *)
,p"12.1",p"17",p"28.3",p"42.3",p"54.3",p"58.2",p"62.1",p"65.5",p"68.2",p"71"];
val it= item "\\verb+open_in+" [p"49.1",p"75.1",p"78.1",p"79.1.1"];
val it= item "\\verb+open_out+" [p"49.1",p"75.1",p"78.1",p"79.1.1"];
val it= item "opening structures in declarations" [p"12.1",p"28.3",p"54.3",p"71"];
val it= item "opening structures in specifications" [p"17",p"18.2",p"42.3",p"62.1"];
val it= item "options" [p"10.2"];
val it= subitem "first ($\\langle\\ \\rangle$)" [p"26.1",p"41.1"];
val it= subitem "second ($\\langle\\langle\\ \\rangle\\rangle$)" [p"26.1"];
val it= item "{\\tt ord} (of string)" [p"49.1",p"74",p"78.0"];
val it= item "{\\tt Ord}" [p"49.2",p"78.0"];
val it= item "\\ORELSE" [p"6.1",p"67.1",p"70"];
val it= item "{\\tt output}" [p"49.1",p"75.1",p"79.1.1"];
val it= item "``{\\tt Output stream is closed}'' " [p"79.1.1"];
val it= item "$\\OUTSTREAM$" [p"73.1",p"75.2",p"78.1"];
val it= --"P";
val it= item "$\\p$ (see packet)" [];
val it= item "$\\Pack$ (packets)" [p"48.1"];
val it= item "packet ($\\p$)" [p"48.1",p"51.1",p"53.1",p"59.2","64.1"to"65.2"];
val it= item "parsing" [p"4.3",p"64.1"];
val it= item "$\\pat$ (pattern)" [p"10.1",p"12.2",p"31.3",p"56.2",p"67.2",p"72.1"];
val it= item "Pat (patterns)" [p"10.1"];
val it= item "$\\labpats$ (pattern row)" (*patrow*) [p"10.1",p"12.2",p"31.2",p"56.2",p"67.2",p"72.1"];
val it= item "PatRow (pattern rows)" [p"10.1"];
val it= item "pattern" [p"10.1",p"12.2",p"31.3",p"56.2",p"67.2",p"72.1"];
val it= subitem "layered" [p"12.2",p"31.3",p"57.0",p"72.1"];
val it= item "pattern matching" ["32.2"to"33.1",p"47.2",p"49.2",p"56.2"];
val it= subitem "with $\\REF$" [p"56.3",p"57.0"];
val it= item "pattern row" [p"10.1",p"12.2",p"31.2",p"56.2",p"67.2",p"72.1"];
val it= item "polymorphic" [];
val it= subitem "functions" [p"26.2",p"28.2",p"30.4"];
val it= subitem "references" [p"23.4",p"24.3",p"28.2","45.3"to"46.01",p"74"];
val it= subitem "exceptions" [p"23.4",p"30.1",p"43.4","45.3"to"46.01"];
(* version2: subitem "references" [p"23.4",p"24.3",p"28.2",p"40.2",p"74"];
val it= subitem "exceptions" [p"23.4",p"30.1",p"40.2",p"43.4"]; *)
val it= item "precedence" [p"10.3",p"69.4"];
val it= item "principal" [];
val it= subitem "environment" [p"33.2",p"40.2"];
val it= subitem "equality-" [p"38.5",p"41.25",p"42.1",p"44.4",p"45.2"];
val it= subitem "signature" [p"38.1",p"38.5",p"41.25",p"42.1",p"44.4",p"45.2"];
val it= item "printable character" [p"6.2"];
val it= item "{\\tt Prod}" [p"49.2",p"78.1"];
val it= item "product type (\\verb+*+)" [p"67.2",p"72.2"];
val it= item "program ($\\program$)" [p"4.2","64.1"to"65.2"];
val it= item "Program (programs)" [p"64.1"];
val it= item "projection ($\\of{}{}$)" [p"22.1",p"34.2"];
val it= --"Q";
val it= item "qualified identifier" [p"7.2"];
val it= item "{\\tt Quot}" [p"49.2",p"78.1"];
val it= --"R";
val it= item "$\\r$ (record)" [p"48.1",p"52.2",p"56.0",p"56.2"];
val it= item "R (right associative)" [p"10.4",p"69.5"];
val it= item "\\RAISE" [p"6.1",p"11",p"27.3",p"27.4",p"51.1",p"53.1",p"53.1",p"64.1",p"70"];
val it= item "$\\Ran$ (range)" [p"21.1"];
val it= item "$\\REAL$" [];
val it= subitem "the type" [p"73.1",p"75.2"];
val it= subitem "coercion" [p"49.1",p"74",p"77.1"];
val it= item "real constant" [p"6.2",p"75.2"];
val it= item "realisation ($\\rea$)" [p"36.3","37.2"to"37.2.5",p"46"];
val it= item "$\\REC$" [p"6.1",p"12.1",p"13.2",p"29.1",p"50.1",p"55.1",p"71"];
val it= item "$\\Rec$ (recursion operator)" [p"50.1",p"53.1",p"55.1"];
val it= item "record " [];
val it= subitem "$\\r$" [p"48.1",p"52.2",p"56.0",p"56.2"];
val it= subitem "as atomic expression" [p"11",p"27.0",p"52.1",p"67.1",p"70"];
val it= subitem "as atomic pattern" [p"12.2",p"31.1",p"56.0",p"67.2",p"72.1"];
val it= subitem "selector (\\ml{\\#}\\ {\\it lab})" [p"6.1",p"67.1",p"70"];
val it= subitem "type expression" [p"13.1",p"32.1",p"72.2"];
val it= subitem "type ($\\varrho$)" [p"21.2",p"27.2",p"31.1",p"31.2",p"32.15"];
val it= item "Record (records)" [p"48.1"];
val it= item "$\\RecType$ (record types)" [p"21.2"];
val it= item "recursion (see $\\REC$, $\\Rec$, and $\\FUN$)" [];
val it= item "$\\REF$" [];
val it= subitem "the type constructor" [p"73.1",p"75.2"];
val it= subitem "the type name" [p"23.1",p"73.1",p"74",p"75.2"];
val it= subitem "the value constructor" [p"47.2",p"52.3",p"56.3",p"57.0",p"74",p"75.2",p"77.1"];
val it= item "reserved words" [p"6.1",p"14.1"];
val it= item "respect equality (see equality)"[];
val it= item "restrictions" [];
val it= subitem "closure rules (see these)" [];
val it= subitem "syntactic (Core)" [p"13.2","32.2"to"33.1"];
val it= subitem "syntactic (Modules)" [p"16.1"];
val it= item "\\ml{rev}" [p"74",p"77.1"];
val it= --"S";
val it= item "$\\s$ (state)" [p"48.1",p"50.2",p"52.2",p"57.0",p"59.2","64.1"to"65.2"];
val it= item "$\\S$ (structure)" [p"21.2",p"34.2",p"35.1",p"37.1",p"39.2",
p"41.2",p"48.2"];
val it= item "{\\SCon} (special constants)" [p"6.4"];
val it= item "{\\scon} (see special constant)" [];
val it= item "scope" [];
val it= subitem "of constructor" [p"8.3",p"22.1"];
val it= subitem "of value variable" [p"8.3",p"22.1"];
val it= subitem "of fixity directive" [p"9.2",p"14.1"];
val it= subitem "of explicit type variable" ["23.10"to"23.11",p"28.3",p"29.0"];
val it= item "$\\SE$ (structure environment)" [];
val it= subitem "static" [p"21.2",p"22.1",p"34.2",p"37.1",p"41.1",p"43.5",p"73.1"];
val it= subitem "dynamic" [p"48.1",p"59.1",p"61.1",p"76.1"];
val it= item "semantic object" [p"5.1"];
val it= subitem "simple (Static)" [p"20.1"];
val it= subitem "simple (Dynamic)" [p"47.2"];
val it= subitem "compound (Core, Static)" [p"20.4",p"21.2"];
val it= subitem "compound (Core, Dynamic)" [p"48.1"];
val it= subitem "compound (Modules, Static)" [p"34.1"];
val it= subitem "compound (Modules, Dynamic)" [p"58.2"];
val it= item "sentence" [p"5.1",p"26.1",p"39.1",p"50.2",p"59.2",p"64.1"];
val it= item "separate compilation" [p"15.1","18.2"to"19.1",p"46"];
val it= item "sequential" [];
val it= subitem "expression" [p"67.1",p"70"];
val it= subitem "declaration (Core)" [p"12.1",p"28.3",p"54.3",p"71"];
val it= subitem "functor declarations" [p"18.1",p"45.1.5",p"63.1"];
val it= subitem "functor specification" [p"18.1",p"44.2"];
val it= subitem "signature declaration" [p"16.1",p"41.3",p"61.3"];
val it= subitem "specification" [p"17",p"42.3",p"62.1"];
val it= subitem "structure-level declaration" [p"16.1",p"40.2",p"60.2"];
val it= item "$\\shareq$ (sharing equation)" [p"15.1",p"17",p"44.1",p"58.1"];
val it= item "SharEq (sharing equations)" [p"15.1",p"58.1"];
val it= item "sharing" ["18.2"to"19.1",p"40.1",p"41.2",p"43.0",p"43.2",p"44.1",p"46"];
val it= subitem "equations" [p"15.1",p"17",p"44.1",p"58.1"];
val it= subitem "specification" [p"17",p"42.3"];
val it= subitem "of structures" [p"17",p"44.1"];
val it= subitem "of types" [p"17","44.1"to"44.1.5"];
val it= subitem "multiple" [p"17",p"44.1"];
val it= item "\\SHARING" [p"14.1",p"17",p"42.3"];
val it= item "side-condition" [p"50.2",p"59.2"];
val it= item "side-effect" [p"59.2",p"65.2"];
val it= item "\\SIG" [p"14.1",p"16.1",p"41.2",p"61.2"];
val it= item "$\\Sig$ (signatures)" [p"34.1"];
val it= item "$\\sigbind$ (signature binding)" [p"15.1",p"16.1",p"42.1",p"61.4"];
val it= item "SigBind (signature bindings)" [p"15.1"];
val it= item "$\\sigdec$ (signature declaration)" [p"15.1",p"16.1",p"41.3",p"61.3"];
val it= item "SigDec (signature declarations)" [p"15.1"];
val it= item "$\\SigEnv$ (signature environments)" [p"34.1",p"58.2"];
val it= item "$\\sigexp$ (signature expression)" [p"15.1",p"16.1",p"41.2",p"61.2"];
val it= item "SigExp (signature expressions)" [p"15.1"];
val it= item "$\\sigid$ (signature identifier)" [p"14.1",p"16.1",p"41.2",p"61.2"];
val it= item "$\\SigId$ (signature identifiers)" [p"14.1"];
val it= item "signature ($\\sig$)" [p"34.1",p"35.2",p"36.35",
p"36.4","37.2"to"37.2.5",p"38.1",p"38.5",p"41.2", p"41.25",
p"42.1",p"44.4",p"45.2",p"46",p"59.1"];
val it= item "\\SIGNATURE" [p"14.1",p"16.1",p"41.3",p"61.3"];
val it= item "signature binding" [p"15.1",p"16.1",p"42.1",p"61.4"];
val it= item "signature declaration" [p"15.1",p"16.1",p"41.3",p"61.3"];