diff --git a/src/sa/Sc2sa.java b/src/sa/Sc2sa.java index 225218976aab8f683bcde50f2db0d039a8f36827..b2bddb7c4653e18509d4b919aa1edcdd77b0184f 100644 --- a/src/sa/Sc2sa.java +++ b/src/sa/Sc2sa.java @@ -32,6 +32,7 @@ public class Sc2sa extends DepthFirstAdapter @Override public void caseStart(Start node) { inStart(node); + node.getPProg().apply(this); outStart(node); } @@ -542,6 +543,13 @@ public class Sc2sa extends DepthFirstAdapter @Override public void caseAListedecvarLdecvar(AListedecvarLdecvar node) { inAListedecvarLdecvar(node); + SaDecVar tete = null; + SaLDecVar queue = null; + node.getDecvar().apply(this); + tete = (SaDecVar) this.returnValue; + node.getLdecvar2().apply(this); + queue = (SaLDecVar) this.returnValue; + this.returnValue = new SaLDecVar(tete, queue); outAListedecvarLdecvar(node); } @@ -555,6 +563,14 @@ public class Sc2sa extends DepthFirstAdapter @Override public void caseAListedecvar2Ldecvar2(AListedecvar2Ldecvar2 node) { inAListedecvar2Ldecvar2(node); + SaDecVar tete = null; + SaLDecVar queue = null; + node.getVirg().apply(this); + node.getDecvar().apply(this); + tete = (SaDecVar) this.returnValue; + node.getLdecvar2().apply(this); + queue = (SaLDecVar) this.returnValue; + this.returnValue = new SaLDecVar(tete, queue); outAListedecvar2Ldecvar2(node); } @@ -568,6 +584,13 @@ public class Sc2sa extends DepthFirstAdapter @Override public void caseAListedecfoncLdecfonc(AListedecfoncLdecfonc node) { inAListedecfoncLdecfonc(node); + SaDecFonc tete = null; + SaLDecFonc queue = null; + node.getDecfonc().apply(this); + tete = (SaDecFonc) this.returnValue; + node.getLdecfonc().apply(this); + queue = (SaLDecFonc) this.returnValue; + this.returnValue = new SaLDecFonc(tete, queue); outAListedecfoncLdecfonc(node); }