Skip to content
Snippets Groups Projects
Commit 783758bd authored by BAZIZI Zakaria's avatar BAZIZI Zakaria
Browse files

travaik tkvsj onzsv

parent 5d7b9a5e
No related branches found
No related tags found
No related merge requests found
......@@ -298,7 +298,7 @@ public class Sc2sa extends DepthFirstAdapter
op1=(SaExp) this.returnValue ;
node.getMult().apply(this);
op2=(SaExp) this.returnValue ;
this.returnValue = new SaExpAdd(op1,op2);
this.returnValue = new SaExpSub(op1,op2);
}
......@@ -343,7 +343,7 @@ public class Sc2sa extends DepthFirstAdapter
op1=(SaExp) this.returnValue;
node.getNeg().apply(this);
op2=(SaExp) this.returnValue;
this.returnValue = new SaExpAdd(op1,op2);
this.returnValue = new SaExpMult(op1,op2);
}
public void inADiviserMult(ADiviserMult node)
......@@ -366,7 +366,7 @@ public class Sc2sa extends DepthFirstAdapter
op1=(SaExp) this.returnValue;
node.getNeg().apply(this);
op2=(SaExp) this.returnValue;
this.returnValue = new SaExpAdd(op1,op2);
this.returnValue = new SaExpDiv(op1,op2);
}
public void inANegMult(ANegMult node)
......@@ -446,10 +446,7 @@ public class Sc2sa extends DepthFirstAdapter
@Override
public void caseAParentheseE6(AParentheseE6 node)
{
node.getExp().apply(this);
}
public void inANombreE6(ANombreE6 node)
......@@ -495,11 +492,8 @@ public class Sc2sa extends DepthFirstAdapter
public void inAFauxE6(AFauxE6 node)
{
SaExp op1 = null ;
node.getFaux().apply(this);
op1 = (SaExp) this.returnValue ;
defaultIn(node);
}
public void outAFauxE6(AFauxE6 node)
{
defaultOut(node);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment