Commit 38932fea3fb5a6a08ee31a97676ab2cf079a4c50

Authored by Salvador Abreu
1 parent f461b0bb
Exists in master

recursively traverse initializer

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
fzn-parser/semantic.pl
@@ -22,7 +22,7 @@ sa_n_traverse([_|Ns], NNs, ST) :- % ignore failing nodes (beware!) @@ -22,7 +22,7 @@ sa_n_traverse([_|Ns], NNs, ST) :- % ignore failing nodes (beware!)
22 22
23 sa_n(var(N,T,I,A), V, ST) :- 23 sa_n(var(N,T,I,A), V, ST) :-
24 sa_attribs(A, AX, ST), 24 sa_attribs(A, AX, ST),
25 - sa_n(I, NI, ST), % parse initializer 25 + sa_n_traverse(I, NI, ST), % parse initializer
26 V=var(N,T,NI,AX), % new AST node becomes ST entry value 26 V=var(N,T,NI,AX), % new AST node becomes ST entry value
27 st_insert(ST, N, V). 27 st_insert(ST, N, V).
28 28