Blame view

fz/examples/aust.ast 4.8 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 > ['X_INTRODUCED_0'|_T].
7a9d1324   Salvador Abreu   simple example ou...
7
_T > [[]|_T].
cf618079   Salvador Abreu   new output
8
9
10
11
12
_T > [lit(1,int)|_T].
_T > [lit(-1,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
13
[VAL,AN,ID,T|_T] > [var(ID, array(T,1,2), VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
14
15
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
16
_T > ['wa'|_T].
cf618079   Salvador Abreu   new output
17
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
18
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
19
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
20
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
21
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
22
23
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
24
_T > ['nt'|_T].
cf618079   Salvador Abreu   new output
25
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
26
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
27
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
28
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
29
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
30
31
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
32
_T > ['sa'|_T].
cf618079   Salvador Abreu   new output
33
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
34
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
35
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
36
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
37
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
38
39
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
40
_T > ['q'|_T].
cf618079   Salvador Abreu   new output
41
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
42
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
43
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
44
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
45
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
46
47
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
48
_T > ['nsw'|_T].
cf618079   Salvador Abreu   new output
49
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
50
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
51
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
52
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
53
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
54
55
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
56
_T > ['v'|_T].
cf618079   Salvador Abreu   new output
57
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
58
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
59
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
60
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
61
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
62
63
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
64
_T > ['t'|_T].
cf618079   Salvador Abreu   new output
65
_T > [id('output_var')|_T].
7a9d1324   Salvador Abreu   simple example ou...
66
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
67
[As, E|_T] > [[E|As]|_T].
e2445a00   Salvador Abreu   progress on AST
68
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
69
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
7a9d1324   Salvador Abreu   simple example ou...
70
71
72
[H,T|_T] > [[H|T]|_T].
[X|_T] > [vars(X)|_T].
_T > [[]|_T].
cf618079   Salvador Abreu   new output
73
74
75
76
77
78
79
80
81
82
_T > [id('X_INTRODUCED_0')|_T].
_T > [id('wa')|_T].
_T > [id('nt')|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
83
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
84
_T > [[]|_T].
cf618079   Salvador Abreu   new output
85
86
87
88
89
90
91
92
93
94
95
96
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
97
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
98
_T > [[]|_T].
cf618079   Salvador Abreu   new output
99
100
101
102
103
104
105
106
107
108
109
110
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
111
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
112
_T > [[]|_T].
cf618079   Salvador Abreu   new output
113
114
115
116
117
118
119
120
121
122
123
124
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
125
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
126
_T > [[]|_T].
cf618079   Salvador Abreu   new output
127
128
129
130
131
132
133
134
135
136
137
138
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
139
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
140
_T > [[]|_T].
cf618079   Salvador Abreu   new output
141
142
143
144
145
146
147
148
149
150
151
152
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
153
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
154
_T > [[]|_T].
cf618079   Salvador Abreu   new output
155
156
157
158
159
160
161
162
163
164
165
166
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
167
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
168
_T > [[]|_T].
cf618079   Salvador Abreu   new output
169
170
171
172
173
174
175
176
177
178
179
180
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
181
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
182
_T > [[]|_T].
cf618079   Salvador Abreu   new output
183
184
185
186
187
188
189
190
191
192
193
194
[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].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[Es|_T] > [lit(Es,array(_))|_T].
_T > [lit(0,int)|_T].
[E|_T] > [[E]|_T].
[T,H|_T] > [[H|T]|_T].
[T,H|_T] > [[H|T]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
195
[AL|_T] > [C|_T] :- C =.. ['int_lin_ne'|AL].
7a9d1324   Salvador Abreu   simple example ou...
196
_T > [[]|_T].
cf618079   Salvador Abreu   new output
197
[A,C|_T] > [constraint(C,A)|_T].
7a9d1324   Salvador Abreu   simple example ou...
198
199
200
[H,T|_T] > [[H|T]|_T].
[X|_T] > [constrs(X)|_T].
_T > [[]|_T].
0b83a7f1   Salvador Abreu   First stab at sem...
201
202
203
_T > [satisfy|_T].
[S,A|_T] > [solve(S, A)|_T].
[S,C,V,P|_T] > [fzn(P, V, C, S)|_T].