Blame view

fz/examples/aust.ast.old 4.51 KB
7a9d1324   Salvador Abreu   simple example ou...
1
2
3
4
5
_ > [].
_T > [[]|_T].
[X|_T] > [preds(X)|_T].
_T > [[]|_T].
_T > [int|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
6
_T > [id('X_INTRODUCED_0')|_T].
7a9d1324   Salvador Abreu   simple example ou...
7
8
9
10
_T > [[]|_T].
_T > [int:lit(1)|_T].
_T > [int:lit(-1)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
11
[Es|_T] > [array(_):alit(Es)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
12
[VAL,AN,T|_T] > [var(array(T,1,2), VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
13
14
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
15
_T > [id('wa')|_T].
7a9d1324   Salvador Abreu   simple example ou...
16
17
18
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
19
20
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
21
22
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
23
_T > [id('nt')|_T].
7a9d1324   Salvador Abreu   simple example ou...
24
25
26
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
27
28
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
29
30
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
31
_T > [id('sa')|_T].
7a9d1324   Salvador Abreu   simple example ou...
32
33
34
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
35
36
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
37
38
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
39
_T > [id('q')|_T].
7a9d1324   Salvador Abreu   simple example ou...
40
41
42
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
43
44
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
45
46
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
47
_T > [id('nsw')|_T].
7a9d1324   Salvador Abreu   simple example ou...
48
49
50
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
51
52
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
53
54
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
55
_T > [id('v')|_T].
7a9d1324   Salvador Abreu   simple example ou...
56
57
58
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
59
60
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
61
62
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
63
_T > [id('t')|_T].
7a9d1324   Salvador Abreu   simple example ou...
64
65
66
_T > [_:id('output_var')|_T].
_T > [[]|_T].
[H,T|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
67
68
_T > [[]|_T].
[VAL,AN,T|_T] > [var(T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
69
70
71
72
73
74
75
[H,T|_T] > [[H|T]|_T].
[X|_T] > [vars(X)|_T].
_T > [[]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('wa')|_T].
_T > [_:id('nt')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
76
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
77
78
79
80
81
82
83
84
85
86
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('wa')|_T].
_T > [_:id('sa')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
87
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
88
89
90
91
92
93
94
95
96
97
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('nt')|_T].
_T > [_:id('sa')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
98
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
99
100
101
102
103
104
105
106
107
108
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('nt')|_T].
_T > [_:id('q')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
109
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
110
111
112
113
114
115
116
117
118
119
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('sa')|_T].
_T > [_:id('q')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
120
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
121
122
123
124
125
126
127
128
129
130
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('sa')|_T].
_T > [_:id('nsw')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
131
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
132
133
134
135
136
137
138
139
140
141
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('sa')|_T].
_T > [_:id('v')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
142
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
143
144
145
146
147
148
149
150
151
152
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('q')|_T].
_T > [_:id('nsw')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
153
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
154
155
156
157
158
159
160
161
162
163
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
_T > [_:id('X_INTRODUCED_0')|_T].
_T > [_:id('nsw')|_T].
_T > [_:id('v')|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
2330bbc2   Salvador Abreu   build increment
164
[Es|_T] > [array(_):alit(Es)|_T].
7a9d1324   Salvador Abreu   simple example ou...
165
166
167
168
169
170
171
172
_T > [int:lit(0)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
_T > [[]|_T].
[A, C|_T] > [constraint(C, A)|_T].
[H,T|_T] > [[H|T]|_T].
[X|_T] > [constrs(X)|_T].
_T > [[]|_T].