3150
|
1 |
% This file was generated by 'rail' from 'logics.rai'
|
5763
|
2 |
\rail@i {1}{ typedef : 'typedef' ( () | '(' name ')') type '=' set witness; \par type : typevarlist name ( () | '(' infix ')' ); set : string; witness : () | '(' id ')'; }
|
2660
|
3 |
\rail@o {1}{
|
|
4 |
\rail@begin{2}{typedef}
|
3096
|
5 |
\rail@term{typedef}[]
|
2660
|
6 |
\rail@bar
|
|
7 |
\rail@nextbar{1}
|
3096
|
8 |
\rail@term{(}[]
|
3150
|
9 |
\rail@nont{name}[]
|
3096
|
10 |
\rail@term{)}[]
|
2660
|
11 |
\rail@endbar
|
3096
|
12 |
\rail@nont{type}[]
|
|
13 |
\rail@term{=}[]
|
|
14 |
\rail@nont{set}[]
|
|
15 |
\rail@nont{witness}[]
|
2660
|
16 |
\rail@end
|
|
17 |
\rail@begin{2}{type}
|
3096
|
18 |
\rail@nont{typevarlist}[]
|
|
19 |
\rail@nont{name}[]
|
2660
|
20 |
\rail@bar
|
|
21 |
\rail@nextbar{1}
|
3096
|
22 |
\rail@term{(}[]
|
|
23 |
\rail@nont{infix}[]
|
|
24 |
\rail@term{)}[]
|
2660
|
25 |
\rail@endbar
|
|
26 |
\rail@end
|
|
27 |
\rail@begin{1}{set}
|
3096
|
28 |
\rail@nont{string}[]
|
2660
|
29 |
\rail@end
|
|
30 |
\rail@begin{2}{witness}
|
|
31 |
\rail@bar
|
|
32 |
\rail@nextbar{1}
|
3096
|
33 |
\rail@term{(}[]
|
|
34 |
\rail@nont{id}[]
|
|
35 |
\rail@term{)}[]
|
2660
|
36 |
\rail@endbar
|
|
37 |
\rail@end
|
|
38 |
}
|
5763
|
39 |
\rail@i {2}{ record : 'record' typevarlist name '=' parent (field +); \par parent : ( () | type '+'); field : name '::' type; }
|
2660
|
40 |
\rail@o {2}{
|
5735
|
41 |
\rail@begin{2}{record}
|
|
42 |
\rail@term{record}[]
|
|
43 |
\rail@nont{typevarlist}[]
|
|
44 |
\rail@nont{name}[]
|
|
45 |
\rail@term{=}[]
|
|
46 |
\rail@nont{parent}[]
|
|
47 |
\rail@plus
|
|
48 |
\rail@nont{field}[]
|
|
49 |
\rail@nextplus{1}
|
|
50 |
\rail@endplus
|
|
51 |
\rail@end
|
|
52 |
\rail@begin{2}{parent}
|
|
53 |
\rail@bar
|
|
54 |
\rail@nextbar{1}
|
|
55 |
\rail@nont{type}[]
|
|
56 |
\rail@term{+}[]
|
|
57 |
\rail@endbar
|
|
58 |
\rail@end
|
|
59 |
\rail@begin{1}{field}
|
|
60 |
\rail@nont{name}[]
|
|
61 |
\rail@term{::}[]
|
|
62 |
\rail@nont{type}[]
|
|
63 |
\rail@end
|
|
64 |
}
|
5763
|
65 |
\rail@i {3}{ datatype : 'datatype' typedecls; \par typedecls: ( newtype '=' (cons + '|') ) + 'and' ; newtype : typevarlist id ( () | '(' infix ')' ) ; cons : name (argtype *) ( () | ( '(' mixfix ')' ) ) ; argtype : id | tid | ('(' typevarlist id ')') ; }
|
5735
|
66 |
\rail@o {3}{
|
5763
|
67 |
\rail@begin{1}{datatype}
|
|
68 |
\rail@term{datatype}[]
|
|
69 |
\rail@nont{typedecls}[]
|
|
70 |
\rail@end
|
|
71 |
\rail@begin{3}{typedecls}
|
5743
|
72 |
\rail@plus
|
5763
|
73 |
\rail@nont{newtype}[]
|
3096
|
74 |
\rail@term{=}[]
|
2660
|
75 |
\rail@plus
|
3096
|
76 |
\rail@nont{cons}[]
|
2660
|
77 |
\rail@nextplus{1}
|
3096
|
78 |
\rail@cterm{|}[]
|
2660
|
79 |
\rail@endplus
|
5743
|
80 |
\rail@nextplus{2}
|
|
81 |
\rail@cterm{and}[]
|
|
82 |
\rail@endplus
|
|
83 |
\rail@end
|
5763
|
84 |
\rail@begin{2}{newtype}
|
5743
|
85 |
\rail@nont{typevarlist}[]
|
|
86 |
\rail@nont{id}[]
|
|
87 |
\rail@bar
|
|
88 |
\rail@nextbar{1}
|
|
89 |
\rail@term{(}[]
|
|
90 |
\rail@nont{infix}[]
|
|
91 |
\rail@term{)}[]
|
|
92 |
\rail@endbar
|
2660
|
93 |
\rail@end
|
|
94 |
\rail@begin{3}{cons}
|
3096
|
95 |
\rail@nont{name}[]
|
2660
|
96 |
\rail@bar
|
|
97 |
\rail@nextbar{1}
|
|
98 |
\rail@plus
|
5743
|
99 |
\rail@nont{argtype}[]
|
2660
|
100 |
\rail@nextplus{2}
|
|
101 |
\rail@endplus
|
|
102 |
\rail@endbar
|
|
103 |
\rail@bar
|
|
104 |
\rail@nextbar{1}
|
5743
|
105 |
\rail@term{(}[]
|
3096
|
106 |
\rail@nont{mixfix}[]
|
5743
|
107 |
\rail@term{)}[]
|
2660
|
108 |
\rail@endbar
|
|
109 |
\rail@end
|
5743
|
110 |
\rail@begin{3}{argtype}
|
2660
|
111 |
\rail@bar
|
3096
|
112 |
\rail@nont{id}[]
|
2660
|
113 |
\rail@nextbar{1}
|
3096
|
114 |
\rail@nont{tid}[]
|
2660
|
115 |
\rail@nextbar{2}
|
3096
|
116 |
\rail@term{(}[]
|
|
117 |
\rail@nont{typevarlist}[]
|
|
118 |
\rail@nont{id}[]
|
|
119 |
\rail@term{)}[]
|
2660
|
120 |
\rail@endbar
|
|
121 |
\rail@end
|
|
122 |
}
|