From 38932fea3fb5a6a08ee31a97676ab2cf079a4c50 Mon Sep 17 00:00:00 2001 From: Salvador Abreu Date: Fri, 3 Jul 2015 19:13:25 +0900 Subject: [PATCH] recursively traverse initializer --- fzn-parser/semantic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzn-parser/semantic.pl b/fzn-parser/semantic.pl index 0367c60..e652bb7 100644 --- a/fzn-parser/semantic.pl +++ b/fzn-parser/semantic.pl @@ -22,7 +22,7 @@ sa_n_traverse([_|Ns], NNs, ST) :- % ignore failing nodes (beware!) sa_n(var(N,T,I,A), V, ST) :- sa_attribs(A, AX, ST), - sa_n(I, NI, ST), % parse initializer + sa_n_traverse(I, NI, ST), % parse initializer V=var(N,T,NI,AX), % new AST node becomes ST entry value st_insert(ST, N, V). -- libgit2 0.21.2