Blame view

fz/examples/a.ast 1.12 KB
b204495a   Salvador Abreu   added simplified ...
1
2
3
4
5
_ > [].
_T > [[]|_T].
[X|_T] > [preds(X)|_T].
_T > [[]|_T].
_T > [int|_T].
e2445a00   Salvador Abreu   progress on AST
6
_T > ['X_INTRODUCED_0'|_T].
b204495a   Salvador Abreu   added simplified ...
7
8
9
10
11
_T > [[]|_T].
_T > [int:lit(1)|_T].
_T > [int:lit(-1)|_T].
[T2:E2,T1:E1|_T] > [(T1,T2):(E1,E2)|_T].
[Es|_T] > [array(_):alit(Es)|_T].
6e2f2ea4   Salvador Abreu   continue AST comp...
12
[VAL,AN,ID,T|_T] > [var(ID, array(T,1,2), VAL, AN)|_T].
b204495a   Salvador Abreu   added simplified ...
13
14
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
e2445a00   Salvador Abreu   progress on AST
15
_T > ['wa'|_T].
b204495a   Salvador Abreu   added simplified ...
16
17
_T > [_:id('output_var')|_T].
_T > [[]|_T].
6e2f2ea4   Salvador Abreu   continue AST comp...
18
[As, E|_T] > [[E|As]|_T].
b204495a   Salvador Abreu   added simplified ...
19
_T > [[]|_T].
f7de4bd3   Salvador Abreu   var decl fix
20
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
b204495a   Salvador Abreu   added simplified ...
21
22
[H,T|_T] > [[H|T]|_T].
_T > [int(1,3)|_T].
e2445a00   Salvador Abreu   progress on AST
23
_T > ['nt'|_T].
b204495a   Salvador Abreu   added simplified ...
24
25
_T > [_:id('output_var')|_T].
_T > [[]|_T].
6e2f2ea4   Salvador Abreu   continue AST comp...
26
[As, E|_T] > [[E|As]|_T].
b204495a   Salvador Abreu   added simplified ...
27
_T > [[]|_T].
f7de4bd3   Salvador Abreu   var decl fix
28
[VAL,AN,ID,T|_T] > [var(ID, T, VAL, AN)|_T].
b204495a   Salvador Abreu   added simplified ...
29
30
31
32
33
34
35
36
37
38
39
[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].
[Es|_T] > [array(_):alit(Es)|_T].
_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].
e2445a00   Salvador Abreu   progress on AST
40
_T > ['int_lin_ne'|_T].
b204495a   Salvador Abreu   added simplified ...
41
_T > [[]|_T].
e2445a00   Salvador Abreu   progress on AST
42
[A,C,E|_T] > [constraint(C,E,A)|_T].
b204495a   Salvador Abreu   added simplified ...
43
44
45
[H,T|_T] > [[H|T]|_T].
[X|_T] > [constrs(X)|_T].
_T > [[]|_T].
6e2f2ea4   Salvador Abreu   continue AST comp...
46
_T > [satisfy|_T].